18#ifndef itkBlockMatchingDisplacementPipeline_h
19#define itkBlockMatchingDisplacementPipeline_h
62template <
typename TFixedPixel =
signed short,
63 typename TMovingPixel = TFixedPixel,
64 typename TMetricPixel = double,
65 typename TCoordRep = double,
66 unsigned int VImageDimension = 2>
69 Image<Vector<TMetricPixel, VImageDimension>, VImageDimension>>
132 ImageRegistrationMethod<FixedImageType, MovingImageType, MetricImageType, DisplacementImageType, CoordRepType>;
162 NormalizedCrossCorrelationNeighborhoodIteratorMetricImageFilter<FixedImageType, MovingImageType, MetricImageType>;
166 BlockAffineTransformMetricImageFilter<FixedImageType, MovingImageType, MetricImageType, MetricPixelType>;
205 const FixedImageType *
217 const MovingImageType *
226 itkGetConstMacro(MaximumAbsStrainAllowed,
double);
231 itkGetConstMacro(LevelRegistrationMethodTextProgressBar,
bool);
248 itkGetConstMacro(BlockOverlap,
double);
253 itkGetConstMacro(ScaleBlockByStrain,
bool);
269 itkGetConstMacro(Direction,
unsigned int);
277 itkSetMacro(RegularizationMaximumNumberOfIterations,
unsigned int);
278 itkGetConstMacro(RegularizationMaximumNumberOfIterations,
unsigned int);
352#ifndef ITK_MANUAL_INSTANTIATION
353# include "itkBlockMatchingDisplacementPipeline.hxx"
Wrap of the vnl_amoeba algorithm.
SmartPointer< Self > Pointer
The metric image is regularized by neighboring metric images according to a Bayesian model before dis...
SmartPointer< Self > Pointer
StrainWindowStrainFilterType::Pointer m_StrainWindowStrainFilter
BlockMatching:: ImageRegistrationMethod< FixedImageType, MovingImageType, MetricImageType, DisplacementImageType, CoordRepType > LevelRegistrationMethodType
RegularizationStrainSigmaType m_RegularizationStrainSigma
Image< MovingPixelType, ImageDimension > MovingImageType
ImageToImageFilter< FixedImageType, DisplacementImageType > Superclass
UpsamplingRatioType m_UpsamplingRatio
MetricImageFilterType::Pointer m_MetricImageFilter
SearchRegionFactorType m_SearchRegionBottomFactor
typename FixedImageType::SizeType RadiusType
unsigned int m_RegularizationMaximumNumberOfIterations
BlockMatching:: BlockAffineTransformMetricImageFilter< FixedImageType, MovingImageType, MetricImageType, MetricPixelType > BlockTransformMetricImageFilterType
BlockTransformCommandType::Pointer m_BlockTransformCommand
DisplacementPipeline Self
static const unsigned int OPTIMIZING_INTERPOLATOR_RADIUS
void SetMovingImage(MovingImageType *moving)
FixedArray< SizeValueType, ImageDimension > BlockRadiusType
const MovingImageType * GetMovingImage()
Function::WelchWindowFunction< OPTIMIZING_INTERPOLATOR_RADIUS > WindowType
TextProgressBarCommand::Pointer m_TextProgressBar
StrainImageFilter< DisplacementImageType, MetricPixelType, MetricPixelType > StrainWindowStrainFilterType
Function::WelchWindowFunction< RESAMPLE_RADIUS > ResampleWindowType
static constexpr unsigned int ImageDimension
BlockMatching::StrainWindowBlockAffineTransformCommand< StrainWindowDisplacementCalculatorType, BlockTransformMetricImageFilterType, StrainWindowStrainFilterType > BlockTransformCommandType
double m_MaximumAbsStrainAllowed
BlockRadiusType m_BottomBlockRadius
WindowedSincInterpolateImageFunction< MovingImageType, RESAMPLE_RADIUS, ResampleWindowType, MovingBoundaryConditionType, CoordRepType > MovingResamplerInterpolatorType
BlockMatching:: NormalizedCrossCorrelationNeighborhoodIteratorMetricImageFilter< FixedImageType, MovingImageType, MetricImageType > MetricImageFilterType
ZeroFluxNeumannBoundaryCondition< MovingImageType > MovingBoundaryConditionType
FixedArray< double, ImageDimension > UpsamplingRatioType
HigherOrderAccurateGradientFilterType::Pointer m_HigherOrderAccurateGradientFilter
DisplacementImageType OutputImageType
DisplacmentRegularizerType::Pointer m_Regularizer
typename StrainFilterType::OutputImageType TensorImageType
SmartPointer< Self > Pointer
BlockMatching::StrainWindowDisplacementCalculator< MetricImageType, DisplacementImageType, MetricPixelType > StrainWindowDisplacementCalculatorType
ZeroFluxNeumannBoundaryCondition< MetricImageType > ResampleBoundaryConditionType
ResampleImageFilter< FixedImageType, FixedImageType, CoordRepType > FixedResamplerType
WindowedSincInterpolateImageFunction< FixedImageType, RESAMPLE_RADIUS, ResampleWindowType, FixedBoundaryConditionType, CoordRepType > FixedResamplerInterpolatorType
FinalInterpolatorType::Pointer m_FinalInterpolator
FixedResamplerInterpolatorType::Pointer m_FixedResamplerInterpolator
typename MetricImageType::SpacingType RegularizationStrainSigmaType
LinearLeastSquaresGradientFilterType::Pointer m_LinearLeastSquaresGradientFilter
TFixedPixel FixedPixelType
virtual void SetupPipeline()
HigherOrderAccurateGradientImageFilter< MetricImageType, MetricPixelType, MetricPixelType > HigherOrderAccurateGradientFilterType
BlockMatching::MultiResolutionIterationDisplacementCalculatorCommand< RegistrationMethodType > DisplacementCalculatorCommandType
BlockMatching::BayesianRegularizationDisplacementCalculator< MetricImageType, DisplacementImageType > DisplacmentRegularizerType
AmoebaOptimizer SubsampleOptimizerType
ZeroFluxNeumannBoundaryCondition< FixedImageType > FixedBoundaryConditionType
BlockMatching::MultiResolutionMinMaxSearchRegionImageSource< FixedImageType, MovingImageType, DisplacementImageType > SearchRegionImageSourceType
MovingResamplerInterpolatorType::Pointer m_MovingResamplerInterpolator
LinearLeastSquaresGradientImageFilter< MetricImageType, MetricPixelType, MetricPixelType > LinearLeastSquaresGradientFilterType
Image< TFixedPixel, ImageDimension > FixedImageType
BlockMatching::MultiResolutionImageRegistrationMethod< FixedImageType, MovingImageType, MetricImageType, DisplacementImageType, CoordRepType > RegistrationMethodType
DisplacementCalculatorCommandType::Pointer m_DisplacementCalculatorCommand
SearchRegionImageSourceType::Pointer m_SearchRegionImageSource
StrainWindowDisplacementCalculatorType::Pointer m_StrainWindower
SubsampleOptimizerType::Pointer m_SubsampleOptimizer
Image< MetricPixelType, ImageDimension > MetricImageType
BlockMatching::MultiResolutionMinMaxBlockRadiusCalculator< FixedImageType > BlockRadiusCalculatorType
void GenerateData() override
BlockMatching::ParabolicInterpolationDisplacementCalculator< MetricImageType, DisplacementImageType > ParabolicInterpolatorType
ParabolicInterpolatorType::Pointer m_ParabolicInterpolator
const FixedImageType * GetFixedImage()
static const unsigned int RESAMPLE_RADIUS
WindowedSincInterpolateImageFunction< MetricImageType, OPTIMIZING_INTERPOLATOR_RADIUS, WindowType, ResampleBoundaryConditionType, CoordRepType > SubsampleInterpolatorType
BlockRadiusCalculatorType::Pointer m_BlockRadiusCalculator
StrainImageFilter< DisplacementImageType, MetricPixelType, MetricPixelType > StrainFilterType
SearchRegionFactorType m_SearchRegionTopFactor
Image< VectorType, ImageDimension > DisplacementImageType
RegistrationMethodType::Pointer m_MultiResolutionRegistrationMethod
SmartPointer< const Self > ConstPointer
MovingResamplerType::Pointer m_MovingResampler
BlockRadiusType m_TopBlockRadius
BlockMatching::MaximumPixelDisplacementCalculator< MetricImageType, DisplacementImageType > MaximumPixelDisplacementCalculatorType
bool m_LevelRegistrationMethodTextProgressBar
bool m_ScaleBlockByStrain
BlockMatching::OptimizingInterpolationDisplacementCalculator< MetricImageType, DisplacementImageType > FinalInterpolatorType
void SetFixedImage(FixedImageType *fixed)
BlockTransformMetricImageFilterType::Pointer m_BlockTransformMetricImageFilter
void GenerateOutputInformation() override
SubsampleInterpolatorType::Pointer m_SubsampleInterpolator
FixedResamplerType::Pointer m_FixedResampler
LevelRegistrationMethodType::Pointer m_LevelRegistrationMethod
TMetricPixel MetricPixelType
ResampleImageFilter< MovingImageType, MovingImageType, CoordRepType > MovingResamplerType
TMovingPixel MovingPixelType
typename SearchRegionImageSourceType::FactorType SearchRegionFactorType
Vector< MetricPixelType, ImageDimension > VectorType
MaximumPixelDisplacementCalculatorType::Pointer m_MaximumPixelInterpolator
The displacement is taken to be the pixel with the maximum metric value.
SmartPointer< Self > Pointer
Base class for multi-resolution image registration methods in the BlockMatching set of tools.
SmartPointer< Self > Pointer
Change the displacement calculator and regulator iterations depending on the level in the pyramid.
SmartPointer< Self > Pointer
The radius varies linearly from a minimum at the lowest level to a maximum at the highest level.
SmartPointer< Self > Pointer
The search region is a factor of the matching block size.
FixedArray< double, ImageDimension > FactorType
SmartPointer< Self > Pointer
The displacement around the maximum pixel is interpolated with an interpolator and the maximizer is s...
SmartPointer< Self > Pointer
The displacement around the maximum pixel is interpolated by a parabola in each direction and the pea...
SmartPointer< Self > Pointer
Displacements outside a strain window are interpolated by surrounding displacements.
SmartPointer< Self > Pointer
Simulate a standard C array with copy semantics.
Window function for sinc interpolation.
Calculate the image gradient from a higher order accurate central-difference derivative kernel.
SmartPointer< Self > Pointer
Templated n-dimensional image class.
Size< VImageDimension > SizeType
Vector< SpacingValueType, VImageDimension > SpacingType
Calculate the gradient using a linear least squares fit to values in the neighborhood slice.
SmartPointer< Self > Pointer
virtual void SetNthInput(DataObjectPointerArraySizeType idx, DataObject *input)
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
Resample an image via a coordinate transform.
SmartPointer< Self > Pointer
Implements transparent reference counting.
Generate a strain field image from a displacement field image.
Image< OutputPixelType, ImageDimension > OutputImageType
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
A templated class holding a n-Dimensional vector.
Use the windowed sinc function to interpolate.
SmartPointer< Self > Pointer
A function object that determines a neighborhood of values at an image boundary according to a Neuman...
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)