I’m rendering a segmentation overlay with discrete labels 1, 2, 4 and background 0 in the image. And looks like I have to pick interpolation type between Linear and Nearest. Either interpolation type renders the data incorrectly, with a thin layer of interpolated “labels” surrounding the structure.
Is there a way to turn off interpolation for label image rendering? Or should I use some other ways rather than ImageSlice + ImageMapper?
Just want to confirm that the Nearest Neighbor Interpolation is not taking average of the neighboring voxels, right? I’m asking because now I suspect the issue might be caused by the incorrect interpolation in the downsampling from the upstream data pipeline (not vtk-js related).
Here’s my lut configuration. The original segmentation should only have label 4. But now 1, 2, 3, are also showing up at the border.