Package org.itk.simple
Class CenteredTransformInitializerFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.CenteredTransformInitializerFilter
CenteredTransformInitializerFilter is a helper class intended to initialize the center of rotation and
the translation of Transforms having the center of rotation among
their parameters.
This class is connected to the fixed image, moving image and transform
involved in the registration. Two modes of operation are possible:
Geometrical,
Center of mass
In the first mode, the geometrical center of the moving image is
passed as initial center of rotation to the transform and the vector
from the center of the fixed image to the center of the moving image
is passed as the initial translation. This mode basically assumes that
the anatomical objects to be registered are centered in their
respective images. Hence the best initial guess for the registration
is the one that superimposes those two centers.
In the second mode, the moments of gray level values are computed for
both images. The center of mass of the moving image is then used as
center of rotation. The vector between the two centers of mass is
passes as the initial translation to the transform. This second
approach assumes that the moments of the anatomical objects are
similar for both images and hence the best initial guess for
registration is to superimpose both mass centers. Note that this
assumption will probably not hold in multi-modality registration.
See:
itk::CenteredTransformInitializer
C++ includes: sitkCenteredTransformInitializerFilter.h
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::CenteredTransformInitializerFilter::CenteredTransformInitializerFilter() Default Constructor that takes no arguments and initializes default parametersprotected
CenteredTransformInitializerFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
itk::simple::CenteredTransformInitializerFilter::~CenteredTransformInitializerFilter() override DestructorTransform itk::simple::CenteredTransformInitializerFilter::Execute(const Image &fixedImage, const Image &movingImage, const Transform &transform) Execute the filter on the input imageprotected void
finalize()
void
Self& itk::simple::CenteredTransformInitializerFilter::GeometryOn() Select between using the geometrical center of the images or using the center of mass given by the image intensities.protected static long
getName()
std::string itk::simple::CenteredTransformInitializerFilter::GetName() const override Name of this classOperationModeType itk::simple::CenteredTransformInitializerFilter::GetOperationMode() constvoid
Self& itk::simple::CenteredTransformInitializerFilter::MomentsOn() Select between using the geometrical center of the images or using the center of mass given by the image intensities.void
Self& itk::simple::CenteredTransformInitializerFilter::SetOperationMode(OperationModeType OperationMode)protected static long
toString()
std::string itk::simple::CenteredTransformInitializerFilter::ToString() const override Print ourselves outMethods inherited from class org.itk.simple.ProcessObject
abort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
-
Constructor Details
-
CenteredTransformInitializerFilter
protected CenteredTransformInitializerFilter(long cPtr, boolean cMemoryOwn) -
CenteredTransformInitializerFilter
public CenteredTransformInitializerFilter()itk::simple::CenteredTransformInitializerFilter::CenteredTransformInitializerFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classProcessObject
-
delete
public void delete()itk::simple::CenteredTransformInitializerFilter::~CenteredTransformInitializerFilter() override Destructor- Overrides:
delete
in classProcessObject
-
setOperationMode
Self& itk::simple::CenteredTransformInitializerFilter::SetOperationMode(OperationModeType OperationMode) -
getOperationMode
OperationModeType itk::simple::CenteredTransformInitializerFilter::GetOperationMode() const -
getName
std::string itk::simple::CenteredTransformInitializerFilter::GetName() const override Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::CenteredTransformInitializerFilter::ToString() const override Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Transform itk::simple::CenteredTransformInitializerFilter::Execute(const Image &fixedImage, const Image &movingImage, const Transform &transform) Execute the filter on the input image -
momentsOn
public void momentsOn()Self& itk::simple::CenteredTransformInitializerFilter::MomentsOn() Select between using the geometrical center of the images or using the center of mass given by the image intensities. -
geometryOn
public void geometryOn()Self& itk::simple::CenteredTransformInitializerFilter::GeometryOn() Select between using the geometrical center of the images or using the center of mass given by the image intensities.
-