     }
   }
 
+  float4 color;
   switch (labelId)
   {
   case 0:

  dim3 dimBlock(32, 1, 1);
  dim3 dimGrid(divUp(imageSize, dimBlock.x), 1, 1);

  int *voronoi_ptr = thrust::raw_pointer_cast(computeVector.data());
  int *index_ptr = thrust::raw_pointer_cast(orderedIndices.data());

  copyBorderIndex<<<dimGrid, dimBlock>>>(imageSize, voronoi_ptr, index_ptr);

  HANDLE_ERROR(cudaThreadSynchronize());
  // thrust::host_vector<int> allindices = orderedIndices;

    return;

  int index = y * imageSize + x;
  int labelId = -1;
  int labelIndex = nearestIndex[index];

  for (int i = 0; i < labelCount; i++)
