public class SoImagePreAlignmentTransform3d extends SoImageVizEngine
SoImagePreAlignmentTransform3d
image filter
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.
File format/default:
ImagePreAlignmentTransform3d {
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. |
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoImagePreAlignmentTransform3d.AlignmentModes
This enum defines the different types of alignments.
|
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFEnum<SoImagePreAlignmentTransform3d.AlignmentModes> |
alignmentMode
Select the type of alignment .
|
static int |
CENTERS
Deprecated.
|
SoSFImageDataAdapter |
inFixedImage
The reference image.
|
SoSFImageDataAdapter |
inMovingImage
The model image.
|
SoImageVizEngineOutput<SoSFFieldContainer,SoRegistrationResult> |
outTransform
Output structure storing registration results.
|
static int |
PRINCIPAL_AXIS
Deprecated.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoImagePreAlignmentTransform3d()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SbMatrix |
getOutputTransformation()
Returns the transform matrix that aligns the model image to the reference image.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
copy, getByName, getOutput, getOutputName
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int CENTERS
SoImagePreAlignmentTransform3d.AlignmentModes.CENTERS
instead.@Deprecated public static final int PRINCIPAL_AXIS
SoImagePreAlignmentTransform3d.AlignmentModes.PRINCIPAL_AXIS
instead.public final SoSFImageDataAdapter inMovingImage
public final SoSFImageDataAdapter inFixedImage
public final SoSFEnum<SoImagePreAlignmentTransform3d.AlignmentModes> alignmentMode
public final SoImageVizEngineOutput<SoSFFieldContainer,SoRegistrationResult> outTransform
public SoImagePreAlignmentTransform3d()
public SbMatrix getOutputTransformation()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com