You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following blurred image. I was unable to find a way to disable the linear interpolation with any of the plotting options.
The expected behaviour (or perhaps the desired feature) is that white pixels should be shown as white when plotting grayscale images. This can be achieved using a vtkImageActor which has the SetInterpolationTypeToNearest method. This seems to be a common plotting method used in vtk examples with grayscale images (e.g. MedIanComparison):
This bug was discovered as part of #6051 . With that PR, it should be possible to pad an image to add a white border around a grayscale image. But, the "white" border will show as a gray border instead when plotting the padded image.
Describe the bug, what's wrong, and what you expected.
If I plot a grayscale image with just three values (0, 127, 255):
I get the following blurred image. I was unable to find a way to disable the linear interpolation with any of the plotting options.
The expected behaviour (or perhaps the desired feature) is that white pixels should be shown as white when plotting grayscale images. This can be achieved using a
vtkImageActor
which has theSetInterpolationTypeToNearest
method. This seems to be a common plotting method used in vtk examples with grayscale images (e.g. MedIanComparison):This bug was discovered as part of #6051 . With that PR, it should be possible to pad an image to add a white border around a grayscale image. But, the "white" border will show as a gray border instead when plotting the padded image.
Steps to reproduce the bug.
See above.
System Information
Screenshots
No response
The text was updated successfully, but these errors were encountered: