SoImagePreAlignmentTransform3d image filter More...
#include <ImageViz/Engines/GeometryAndMatching/Registration/SoImagePreAlignmentTransform3d.h>
Public Types | |
enum | AlignmentMode { CENTERS = 0, PRINCIPAL_AXIS = 1 } |
Public Member Functions | |
SoImagePreAlignmentTransform3d () | |
SbMatrix | getOutputTransformation () |
Public Attributes | |
SoSFImageDataAdapter | inMovingImage |
SoSFImageDataAdapter | inFixedImage |
SoSFEnum | alignmentMode |
SoImageVizEngineOutput < SoSFFieldContainer, SoRegistrationResult * > | outTransform |
SoImagePreAlignmentTransform3d estimates a transformation (translation and rotation) that aligns a moving image with a fixed image based on their intensity values. This transformation is particularly useful as an initial transformation value for the IntensityParametricRegistration engine.
SoImagePreAlignmentTransform3d first computes the centers of gravity and (optionally) the principal axes of both images (model and reference) using the image intensity values as a mass density. In the second step, the translation and the rotation that align the centers of gravity and the principal axes of both images are estimated. Note that if the computation of principal axes is omitted, only a translation is estimated.
inMovingImage | NULL |
inFixedImage | NULL |
alignmentMode | CENTERS |
Notice: This engine requires to preliminarily load the whole input data sets into memory to be computed. As a consequence, the maximum memory parameter must be either set to 0 or greater than the data set memory size:
If this condition is not respected an exception will be raised when launching the execution of this engine: "engine cannot be computed because inputs are not in memory images." If the input data sets cannot fit in memory, this engine will fail during its computation. |
SoImageRegistrationTransform, SoRegistrationResult
SoImagePreAlignmentTransform3d::SoImagePreAlignmentTransform3d | ( | ) |
Constructor.
SbMatrix SoImagePreAlignmentTransform3d::getOutputTransformation | ( | ) | [inline] |
Returns the transform matrix that aligns the model image to the reference image.
Select the type of alignment Use enum AlignmentMode.
Default is CENTERS
The reference image.
Default value is NULL. Supported types include: grayscale, binary, label.
The model image.
Default value is NULL. Supported types include: grayscale, binary, label.
SoImageVizEngineOutput<SoSFFieldContainer, SoRegistrationResult*> SoImagePreAlignmentTransform3d::outTransform |
Output structure storing registration results.