Class SoResampleImageProcessing3d

  • All Implemented Interfaces:
    SafeDisposable

    public class SoResampleImageProcessing3d
    extends SoImageVizEngine
    SoResampleImageProcessing3d filter. The SoResampleImageProcessing3d engine allows to resample an input image into a new coordinate system applying a transform on it.

    For instance it can be used to :

    • apply the transform computed by an automatic registration in order to process the registered image.
    • extract a "rotated ROI" (not aligned with the input bounding box).

    The resampled sub-volume is defined by an SbBox3f (axis aligned box) in 3D space and a SbMatrix that transforms the axis aligned box. The output voxel values are computed by interpolating the input image.

    The SbMatrix that transforms the axis aligned box must only contain translation, rotation and scale (no shearing), otherwise an error is raised.

    An additional transformation can be applied to each output voxel position before the interpolation. This is useful for re-sampling an image after a registration.

    File format/default:

    ResampleImageProcessing3d {

      inImage NULL
      subVolume 0, 0, 0, 1, 1, 1
      subVolumeTransform 1 0 0 0
      0 1 0 0
      0 0 1 0
      0 0 0 1
      samplingMode AUTOMATIC
      subVolumeDimension 1 1 1
      interpolationType LINEAR
      paddingValue 0.0
      transform 1 0 0 0
      0 1 0 0
      0 0 1 0
      0 0 0 1
    }

    See Also:
    SoSampleImageProcessing, SoProxyDataAdapter
    • Field Detail

      • inImage

        public final SoSFImageDataAdapter inImage
        The input image. Default value is NULL. Supported types include: grayscale binary label.
      • subVolume

        public final SoSFBox3f subVolume
        Specifies the input subvolume as an axis aligned box in 3D space. Default is (0,0,0, 1,1,1). This box is (optionally) transformed by the subVolumeTransform to define the final input subvolume.
      • subVolumeTransform

        public final SoSFMatrix subVolumeTransform
        Specifies a transformation of the axis aligned box subVolume. Default is identity.
      • paddingValue

        public final SoSFDouble paddingValue
        The output value if an output voxel position is outside the bounding box of the input image. Default value is 0.
      • transform

        public final SoSFMatrix transform
        This transformation is applied to all output voxel positions before the interpolation. The default value is the identity.
    • Constructor Detail

      • SoResampleImageProcessing3d

        public SoResampleImageProcessing3d()
        Constructor.