I have a test program to implement slab MPR rendering using vtkImageResliceMapper. I am seeing a strange broken line artifact around the edge of the image after interacting in the viewport.
When the slab MPR image is first displayed it is fine but as soon as I interact with the viewport by clicking on it, the line appears. The vtkInteractorStyleTrackballCamera interactor is enabled and all I need to do is click in the viewport (without moving the mouse) and the line will appear. If I disable the interactor, then the line artifact no longer appears with left click but still appears for the right click used for a popup menu. This artifact appears regardless of slab rendering mode used (mean, max, min) or slice thickness (including setting it to 1)
This is a java application that uses the java wrappers and a vtkRenderWindowPanel is being used for display. Here are some sample images, the first is the initial slab image that gets display with no line artifact:
Here is the slab image after simply clicking in the viewport … in this case the line is solid but only appears on two of the edges:
Lastly here is the slab image after rotating the image plane and camera … in this case the line is dashed and appears on all edges:
I have tried numerous different things but the result is always the same, as soon as I click in the viewport, the slab image will always display some sort of a line artifact around the edges. Lastly I will mention that regular MPR (slab not enabled) works fine as does volume rendering, no line artifacts. Any suggestions would be greatly appreciated.