  */
 __device__ float4 rgb(int maxValue, int value)
 {
-    float ratio = 2.0f * value / maxValue;
-    float b = max(0.0f, 1 - ratio);  // NOLINT
-    float r = max(0.0f, ratio - 1);  // NOLINT
-    float g = max(0.0f, 1.0f - b - r);  // NOLINT
-
-    return make_float4(r, g, b, 1.0);
+  float ratio = 2.0f * value / maxValue;
+  float b = max(0.0f, 1 - ratio);     // NOLINT
+  float r = max(0.0f, ratio - 1);     // NOLINT
+  float g = max(0.0f, 1.0f - b - r);  // NOLINT
+
+  return make_float4(r, g, b, 1.0);
 }
 
 __global__ void gather(cudaSurfaceObject_t output, int imageSize,

  int *computePtr = thrust::raw_pointer_cast(computeVector.data());
  int *seedIdsPtr = thrust::raw_pointer_cast(seedIds.data());
  int *seedIndicesPtr = thrust::raw_pointer_cast(seedIndices.data());
  gather << <dimGrid, dimBlock >> >(outputSurface, imageSize, labelCount,
    computePtr, seedIdsPtr, seedIndicesPtr);
  HANDLE_ERROR(cudaThreadSynchronize());
}


    }
  }

  float4 color =
      labelId == -1 ? make_float4(1, 1, 1, 1) : rgb(labelCount, labelId);

  surf2Dwrite(color, output, x * sizeof(float4), y);
}
