Class BSplineRegistrationBasef
java.lang.Object
gov.nih.mipav.model.algorithms.registration.BSplineRegistrationBasef
- Direct Known Subclasses:
BSplineRegistration2Df,BSplineRegistration3Df
This is a common base class for all BSpline-based registrations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intTotal number of samples in target, registered source, and error images.protected ModelSimpleImageDOCUMENT ME!protected ModelSimpleImageDOCUMENT ME!protected RegistrationMeasureDefines the cost measure for comparing the target image with the registered image.protected intThe number of threads. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBSplineRegistrationBasef(ModelSimpleImage kImageSrc, ModelSimpleImage kImageTrg, RegistrationMeasure kRegMeasure) Create instance to be used for registration. -
Method Summary
Modifier and TypeMethodDescriptionprotected float[]createIdentityMapControlPoints(WildMagic.LibFoundation.Curves.BSplineBasisDiscretef kBasis) Create optimal placement of control points for each dimension which yields the identity mapping of the source image, i.e., identity in that the output value to the Bspline function is the same as the input value.voidfinalize()Cleanup memory.doublegetError()Return the current error measure computeas the root mean squared error.Return access to input source image data values which is the same as was passed to the constructor.Return access to input target image data values which is the same as was passed to the constructor.
-
Field Details
-
m_iNumSamplesTrg
protected int m_iNumSamplesTrgTotal number of samples in target, registered source, and error images. -
m_kImageSrc
DOCUMENT ME! -
m_kImageTrg
DOCUMENT ME! -
m_kRegMeasure
Defines the cost measure for comparing the target image with the registered image. -
nthreads
protected int nthreadsThe number of threads.
-
-
Constructor Details
-
BSplineRegistrationBasef
protected BSplineRegistrationBasef(ModelSimpleImage kImageSrc, ModelSimpleImage kImageTrg, RegistrationMeasure kRegMeasure) Create instance to be used for registration. Creates the memory for the registered source image and the error image given the total number of samples in the image.- Parameters:
kImageSrc- ModelSimpleImage Input source image which contains properties and data values. Must have either 2 or 3 dimensions where the number of dimensions matches that of the target image.kImageTrg- ModelSimpleImage Input target image which contains properties and data values. Must have either 2 or 3 dimensions where the number of dimensions matches that of the source image.kRegMeasure- RegistrationMeasure Defines the cost measure for comparing the target image with the registered source image.
-
-
Method Details
-
finalize
Cleanup memory. -
getError
public double getError()Return the current error measure computeas the root mean squared error.- Returns:
- double Current cummulative error measure between target and registered source.
-
getImageSource
Return access to input source image data values which is the same as was passed to the constructor.- Returns:
- ModelSimpleImage Image which contains properties and data values.
-
getImageTarget
Return access to input target image data values which is the same as was passed to the constructor.- Returns:
- ModelSimpleImage Image which contains properties and data values.
-
createIdentityMapControlPoints
protected float[] createIdentityMapControlPoints(WildMagic.LibFoundation.Curves.BSplineBasisDiscretef kBasis) Create optimal placement of control points for each dimension which yields the identity mapping of the source image, i.e., identity in that the output value to the Bspline function is the same as the input value.- Parameters:
kBasis- BSplineBasisDiscretef Input BSpline-basis for a single dimension.- Returns:
- float[] Array of control point positions for this single dimension input B-spline basis These positions are in the [0,1] range and are monotonically increasing. The size of this array is determined by the number of control points specified for the input BSpline basis.
-