QVTKNativeWidget: Jagged edges on 2D images

Hi all,

I’m displaying 2D images using QVTKNativeWidget and I’m seeing zigzag/jagged edges along high-contrast boundaries. I’ve attached two screenshots:

Two things are needed to achieve smooth edges:

  1. high-order interpolation (e.g. cubic, b-spline, or sinc interpolation)
  2. floating-point data (to avoid discretization following the interpolation)

This can be achieved with vtkImageResliceMapper if the right settings are used.

Can you briefly describe the pipeline that you’re currently using to render the images?

1 Like