#include <itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h>
The search region at subsequent levels is a function of the similarity metric at the displacement.
This is a SearchRegionImageSource that defines the search region size dynamically according the metric image performance at higher levels. The search region given the metric images at the current level is determined by the value of the similarity at the determined displacement. This size is interpolated is interpolated at the following levels.
In order to examine the metric image values, this class also inherits from MetricImageToDisplacementCalculator.
A second displacment calculator is used to calculate the displacement from similarity metric images. This can be set with SetDisplacementCalculator(), and it defaults to MaximumPixelDisplacementCalculator.
The specified functor is defined with SetFunctor() and it should evaluate to 1.0 to keep the search region the same size at the next level or less than one to decrease the size at the next level. Candidate functions are available in the itk::Function:: namespace.
Definition at line 71 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
Inheritance diagram for itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >:
Collaboration diagram for itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >:Static Public Member Functions | |
| static Pointer | New (void) |
Static Public Member Functions inherited from itk::Object | |
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static Pointer | New () |
| static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
| static void | BreakOnError () |
| static Pointer | New () |
Static Public Attributes | |
| static constexpr unsigned int | ImageDimension = TMovingImage::ImageDimension |
Static Public Attributes inherited from itk::BlockMatching::MultiResolutionSearchRegionImageSource< TFixedImage, TMovingImage, TDisplacementImage > | |
| static constexpr unsigned int | ImageDimension = TMovingImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< Image< TMovingImage::RegionType, TMovingImage::ImageDimension > > | |
| static constexpr unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::BlockMatching::MetricImageToDisplacementCalculator< TMetricImage, TDisplacementImage > | |
| static constexpr unsigned int | ImageDimension = TDisplacementImage::ImageDimension |
Private Member Functions | |
| MultiResolutionSimilarityFunctionSearchRegionImageSource (const Self &) | |
| void | operator= (const Self &) |
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::CenterPointsImageType = typename DisplacementCalculatorSuperclass::CenterPointsImageType |
Definition at line 103 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::ConstPointer = SmartPointer<const Self> |
Definition at line 82 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::DisplacementCalculatorSuperclass = MetricImageToDisplacementCalculator<TMetricImage, TDisplacementImage> |
Definition at line 79 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::DisplacementImageType = TDisplacementImage |
Type of the displacement image from the previous level.
Definition at line 124 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::DisplacementResamplerPointer = typename DisplacementResamplerType::Pointer |
Definition at line 131 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::DisplacementResamplerType = typename Superclass::DisplacementResamplerType |
Type of the filter used to resample the deformations.
Definition at line 130 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::FixedImageType = TFixedImage |
Type of the fixed image.
Definition at line 88 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::FixedRegionType = typename FixedImageType::RegionType |
Definition at line 89 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::FunctorType = TFunctor |
Type of the function object used to calculate the search region size.
Definition at line 127 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::IndexType = typename DisplacementCalculatorSuperclass::IndexType |
Definition at line 135 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::InterpolatorPointerType = typename InterpolatorType::Pointer |
Definition at line 107 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::InterpolatorType = InterpolateImageFunction<MetricImageType, TInterpolatorPrecisionType> |
Interpolator type alias.
Definition at line 106 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::MetricImageImageType = typename DisplacementCalculatorSuperclass::MetricImageImageType |
Type of the image of metric images.
Definition at line 102 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::MetricImageType = TMetricImage |
Type of the metric image.
Definition at line 99 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::MovingImageType = TMovingImage |
Type of the moving image.
Definition at line 95 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::MovingRegionType = typename MovingImageType::RegionType |
Definition at line 96 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::OutputImageType = typename Superclass::OutputImageType |
Type of the search region image.
Definition at line 110 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::OutputRegionType = typename OutputImageType::RegionType |
Definition at line 111 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::OverlapScheduleType = typename Superclass::OverlapScheduleType |
OverlapScheduleType type alias support.
Definition at line 121 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::Pointer = SmartPointer<Self> |
Definition at line 81 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::PointType = typename DisplacementCalculatorSuperclass::PointType |
Types inherited from the DisplacementCalculator superclass.
Definition at line 134 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::PyramidScheduleType = typename Superclass::PyramidScheduleType |
ScheduleType type alias support.
Definition at line 118 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::RadiusFactorType = FixedArray<double, ImageDimension> |
Type of the minimum search region radius factor.
Definition at line 138 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::RadiusType = typename FixedImageType::SizeType |
Type of the radius used to characterized the fixed image block.
Definition at line 92 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::SearchRegionRadiusImagePointer = typename SearchRegionRadiusImageType::Pointer |
Definition at line 114 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::SearchRegionRadiusImageType |
Definition at line 112 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::SearchRegionRadiusResamplerType = ResampleImageFilter<SearchRegionRadiusImageType, SearchRegionRadiusImageType> |
Definition at line 115 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::Self = MultiResolutionSimilarityFunctionSearchRegionImageSource |
Standard class type alias.
Definition at line 77 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
| using itk::BlockMatching::MultiResolutionSimilarityFunctionSearchRegionImageSource< TFixedImage, TMovingImage, TMetricImage, TDisplacementImage, TFunctor, TInterpolatorPrecisionType >::Superclass = MultiResolutionSearchRegionImageSource<TFixedImage, TMovingImage, TDisplacementImage> |
Definition at line 78 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
|
protected |
Referenced by GetNameOfClass().
|
private |
|
overrideprotectedvirtual |
If an imaging filter needs to perform processing after the buffer has been allocated but before threads are spawned, the filter can can provide an implementation for BeforeThreadedGenerateData(). The execution flow in the default GenerateData() method will be: 1) Allocate the output buffer 2) Call BeforeThreadedGenerateData() 3) Spawn threads, calling ThreadedGenerateData() in each thread. 4) Call AfterThreadedGenerateData() Note that this flow of control is only available if a filter provides a ThreadedGenerateData() method and NOT a GenerateData() method.
Reimplemented from itk::BlockMatching::MultiResolutionSearchRegionImageSource< TFixedImage, TMovingImage, TDisplacementImage >.
|
virtual |
Subclasses must implement this method. If the displacement calculation takes place in SetMetricImagePixel(), then this can do nothing.
Implements itk::BlockMatching::MetricImageToDisplacementCalculator< TMetricImage, TDisplacementImage >.
|
inline |
Definition at line 224 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
References itk::Object::GetDebug().
|
virtual |
|
inline |
Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer.)
Definition at line 251 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
References m_Functor.
|
virtual |
Get a pointer to the interpolator function.
|
virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::BlockMatching::MultiResolutionSearchRegionImageSource< TFixedImage, TMovingImage, TDisplacementImage >.
References MultiResolutionSimilarityFunctionSearchRegionImageSource().
|
inlinevirtual |
Update the modification time for this object. Many filters rely on the modification time to determine if they need to recompute their data.
Reimplemented from itk::Object.
Definition at line 218 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
References itk::Object::Modified().
Referenced by SetFunctor(), SetMinimumSearchRegionRadiusFactor(), and SetTopLevelRadius().
|
inlinestatic |
New macro for creation of through a Smart Pointer is not used because of ambiguities with LightObject.
Definition at line 146 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
References itk::ObjectFactory< T >::Create(), itk::SmartPointer< TObjectType >::GetPointer(), and itk::SmartPointer< TObjectType >::UnRegister().
|
private |
|
inlinevirtual |
This is needed to avoid resolution ambiguities that occur with multiple inheritance.
Reimplemented from itk::LightObject.
Definition at line 206 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
References itk::LightObject::Register().
|
virtual |
Set/Get the internal displacement calculator that is used to calculate the displacements after regularization. Defaults to a MaximumPixelDisplacementCalcultor.
|
virtual |
We allocate the previous search region image.
Reimplemented from itk::BlockMatching::MetricImageToDisplacementCalculator< TMetricImage, TDisplacementImage >.
|
inline |
Set the functor object. This replaces the current Functor with a copy of the specified Functor. This allows the user to specify a functor that has ivars set differently than the default functor. This method requires an operator!=() be defined on the functor (or the compiler's default implementation of operator!=() being appropriate).
Definition at line 263 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
References m_Functor, and Modified().
|
virtual |
Set the interpolator function. The default is itk::LinearInterpolateImageFunction<InputImageType, TInterpolatorPrecisionType>. Some other options are itk::NearestNeighborInterpolateImageFunction (useful for binary masks and other images with a small number of possible pixel values), and itk::BSplineInterpolateImageFunction (which provides a higher order of interpolation).
|
virtual |
Calculates the search region radius based on the metric image.
Reimplemented from itk::BlockMatching::MetricImageToDisplacementCalculator< TMetricImage, TDisplacementImage >.
|
inlinevirtual |
Definition at line 185 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
References SetMinimumSearchRegionRadiusFactor().
|
inlinevirtual |
Set/Get the minimum search region radius factor. This is multiplied by the fixed block size to obtain the minimum search region radius.
Definition at line 179 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
References m_MinimumSearchRegionRadiusFactor, and Modified().
Referenced by SetMinimumSearchRegionRadiusFactor().
|
inlinevirtual |
Set/Get the search region radius at the top, highest level ( level 0 ).
Definition at line 169 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
References m_TopLevelRadius, m_TopLevelRadiusSpecified, and Modified().
|
protectedvirtual |
|
inlinevirtual |
Decrease the reference count (release by another object).
Reimplemented from itk::LightObject.
Definition at line 212 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
References itk::LightObject::UnRegister().
|
staticconstexpr |
ImageDimension enumeration.
Definition at line 85 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
|
protected |
Definition at line 289 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
|
protected |
Definition at line 293 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
Referenced by GetFunctor(), and SetFunctor().
|
protected |
Definition at line 291 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
|
protected |
Definition at line 284 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
Referenced by SetMinimumSearchRegionRadiusFactor().
|
protected |
Definition at line 286 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
|
protected |
Definition at line 287 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
|
protected |
Definition at line 281 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
Referenced by SetTopLevelRadius().
|
protected |
Definition at line 282 of file itkBlockMatchingMultiResolutionSimilarityFunctionSearchRegionImageSource.h.
Referenced by SetTopLevelRadius().