Class CenteredTransformInitializerFilter

java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.CenteredTransformInitializerFilter

public class CenteredTransformInitializerFilter extends ProcessObject
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
  • 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

      protected static long getCPtr(CenteredTransformInitializerFilter obj)
    • swigRelease

      protected static long swigRelease(CenteredTransformInitializerFilter obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class ProcessObject
    • delete

      public void delete()
      itk::simple::CenteredTransformInitializerFilter::~CenteredTransformInitializerFilter() override Destructor
      Overrides:
      delete in class ProcessObject
    • setOperationMode

      public void setOperationMode(CenteredTransformInitializerFilter.OperationModeType OperationMode)
      Self& itk::simple::CenteredTransformInitializerFilter::SetOperationMode(OperationModeType OperationMode)
    • getOperationMode

      OperationModeType itk::simple::CenteredTransformInitializerFilter::GetOperationMode() const
    • getName

      public String getName()
      std::string itk::simple::CenteredTransformInitializerFilter::GetName() const override Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

      public String toString()
      std::string itk::simple::CenteredTransformInitializerFilter::ToString() const override Print ourselves out
      Overrides:
      toString in class ProcessObject
    • execute

      public Transform execute(Image fixedImage, Image movingImage, Transform transform)
      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.