[PREVIEW] SoResampleElasticProcessing2d resamples an image with a displacement field. More...
#include <ImageViz/Engines/GeometryAndMatching/GeometricTransforms/SoResampleElasticProcessing2d.h>
Public Types | |
enum | ExtrapolationType { PADDING_VALUE = 0, NEAREST_VALUE = 1 } |
enum | InterpolationType { NEAREST_NEIGHBOR = 0, LINEAR = 1 } |
Public Member Functions | |
SoResampleElasticProcessing2d () | |
Public Attributes | |
SoSFImageDataAdapter | inImage |
SoSFImageDataAdapter | inDisplacementField |
SoSFEnum | extrapolationType |
SoSFEnum | interpolationType |
SoSFVec2f | origin |
SoSFVec2f | voxelSize |
SoSFVec2i32 | imageDimensions |
SoSFDouble | paddingValue |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outImage |
This algorithm of resampling can be applied with an elastic transformation.
See also: SoElasticRegistrationProcessing2d.
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 |
SoResampleElasticProcessing2d::SoResampleElasticProcessing2d | ( | ) |
Constructor.
The type of extrapolation used.
Use enum ExtrapolationType. Default is PADDING_VALUE
The size in pixels of the output image.
Default value is SbVec2i32(100,100).
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.
Input image to resample.
Default value is NULL. Supported types include: grayscale image.
Type of interpolation you want to use.
Use enum InterpolationType. Default is LINEAR
The origin in world coordinates of the output image.
Default value is SbVec2f(0.0f,0.0f).
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoResampleElasticProcessing2d::outImage |
The resampled output image.
Its resolution and bounding box are defined by the parameters origin, spacing and size. Default value is NULL. Supported types include: grayscale image.
This is the padding value.
Default value is 0.0.
The pixel size in world coordinates for x and y directions of the output image.
Default value is SbVec2f(1.0f,1.0f).