     const thrust::device_vector<float> &occupancySummedAreaTable, int labelId,
     float anchorX, float anchorY, int labelWidthInPixel, int labelHeightInPixel)
 {
-  if (!constraints)
-    createTextureObject();
+  createTextureObject();
 
   assert(textureWidth * textureHeight == occupancySummedAreaTable.size());
 

      thrust::counting_iterator<int>(0) + textureWidth * textureHeight,
      costEvaluator, initialCost, minimumCostOperator);

  std::cout << cost.x << "/" << cost.y << ": " << cost.cost << std::endl;
  return std::make_tuple(cost.x, cost.y);
}



CostFunctionCalculator::~CostFunctionCalculator()
{
}

void CostFunctionCalculator::resize(int width, int height)
