Class SoResampleElasticProcessing2d

  • All Implemented Interfaces:
    SafeDisposable

    public class SoResampleElasticProcessing2d
    extends SoImageVizEngine
    (Preview Feature) SoResampleElasticProcessing2d resamples an image with a displacement field.

    Preview Feature means this class is fully supported and can be used in Open Inventor applications. Being tagged as a Preview Feature just means that the implementation is still subject to API changes and adjustments based on feedback from early adopters. Please be also aware that source compatibility might be broken regardless of the Open Inventor compatibility changes policy due to our commitment to bring needed changes to be sure the specifications of this Preview Feature match the expectations of our customers.

    This algorithm of resampling can be applied with an elastic transformation.

    See also: SoElasticRegistrationProcessing2d.

    File format/default:

    ResampleElasticProcessing2d {

      inImage NULL
      inDisplacementField NULL
      extrapolationType PADDING_VALUE
      interpolationType LINEAR
      origin 0.0f 0.0f
      voxelSize 1.0f 1.0f
      imageDimensions 100 100
      paddingValue 0.0
    }


    Library references: ResampleElastic2d

    • Field Detail

      • inImage

        public final SoSFImageDataAdapter inImage
        Input image to resample. Default value is NULL. Supported types include: grayscale image.
      • inDisplacementField

        public final SoSFImageDataAdapter inDisplacementField
        The displacement field that maps the output voxels to the input voxels. This parameter must be set only if the parameter transformation is set to DISPLACEMENT_FIELD. The image must have exactly two spectral series and the image type must be float. Every pixel of the displacementField image contains 2 values:a displacement in x direction and one in y direction. Default value is NULL. Supported types include: grayscale image.
      • origin

        public final SoSFVec2f origin
        The origin in world coordinates of the output image. Default value is SbVec2f(0.0f,0.0f).
      • voxelSize

        public final SoSFVec2f voxelSize
        The pixel size in world coordinates for x and y directions of the output image. Default value is SbVec2f(1.0f,1.0f).
      • paddingValue

        public final SoSFDouble paddingValue
        This is the padding value. Default value is 0.0.
    • Constructor Detail

      • SoResampleElasticProcessing2d

        public SoResampleElasticProcessing2d()
        Constructor.