#include <itkBlockMatchingMetricImageFilter.h>
Create a metric image by applying a metric to a kernel over a search region.
This class is intended to be used internally by itk::BlockMatching::ImageRegistrationMethod and its ilk.
There are two inputs to this image, the Fixed Image, and the Moving Image. A block or kernel from the FixedImage is specified with SetFixedRegion(). A metric is evaluted by comparing the kernel to the search area specified by SetMovingRegion(). The fixed image region should always be smaller than the moving image region. The metric is evaluated multiple times with different translations applied such that a metric image is created. The output of this filter is the metric image.
By default, the metric image spacing is the same as the moving image's spacing. The origin of the metric image is the same as the fixed image.
Only derived classes of this class are intended to be instantiated.
Definition at line 55 of file itkBlockMatchingMetricImageFilter.h.
Inheritance diagram for itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >:
Collaboration diagram for itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >:Static Public Attributes | |
| static constexpr unsigned int | ImageDimension = TFixedImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TFixedImage, TMetricImage > | |
| static constexpr unsigned int | InputImageDimension |
| static constexpr unsigned int | InputImageDimension |
| static constexpr unsigned int | OutputImageDimension |
| static constexpr unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
| static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Protected Attributes | |
| FixedImageRegionType | m_FixedImageRegion |
| bool | m_FixedImageRegionDefined |
| RadiusType | m_FixedRadius |
| MovingImageRegionType | m_MovingImageRegion |
| bool | m_MovingImageRegionDefined |
| RadiusType | m_MovingRadius |
Protected Attributes inherited from itk::ImageSource< TOutputImage > | |
| bool | m_DynamicMultiThreading { true } |
Protected Attributes inherited from itk::ProcessObject | |
| TimeStamp | m_OutputInformationMTime {} |
| bool | m_Updating {} |
Protected Attributes inherited from itk::LightObject | |
| std::atomic< int > | m_ReferenceCount {} |
| using itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 64 of file itkBlockMatchingMetricImageFilter.h.
| using itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::FixedImageRegionType = typename FixedImageType::RegionType |
Definition at line 74 of file itkBlockMatchingMetricImageFilter.h.
| using itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::FixedImageType = TFixedImage |
Type of the Fixed image.
Definition at line 73 of file itkBlockMatchingMetricImageFilter.h.
| using itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::MetricImageRegionType = typename MetricImageType::RegionType |
Definition at line 83 of file itkBlockMatchingMetricImageFilter.h.
| using itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::MetricImageSpacingType = typename MetricImageType::SpacingType |
Definition at line 82 of file itkBlockMatchingMetricImageFilter.h.
| using itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::MetricImageType = TMetricImage |
Type of the Metric image.
Definition at line 81 of file itkBlockMatchingMetricImageFilter.h.
| using itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::MovingImageRegionType = typename MovingImageType::RegionType |
Definition at line 78 of file itkBlockMatchingMetricImageFilter.h.
| using itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::MovingImageType = TMovingImage |
Type of the Moving image.
Definition at line 77 of file itkBlockMatchingMetricImageFilter.h.
| using itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::Pointer = SmartPointer<Self> |
Definition at line 63 of file itkBlockMatchingMetricImageFilter.h.
| using itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::RadiusType = typename FixedImageType::SizeType |
Type of the block radius.
Definition at line 86 of file itkBlockMatchingMetricImageFilter.h.
| using itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::Self = MetricImageFilter |
Standard class type alias.
Definition at line 61 of file itkBlockMatchingMetricImageFilter.h.
| using itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::Superclass = ImageToImageFilter<TFixedImage, TMetricImage> |
Definition at line 62 of file itkBlockMatchingMetricImageFilter.h.
|
protected |
Referenced by itk::BlockMatching::BlockAffineTransformMetricImageFilter< TFixedImage, TMovingImage, TMetricImage, TStrainValueType >::GetMetricImageFilter(), and itk::BlockMatching::BlockAffineTransformMetricImageFilter< TFixedImage, TMovingImage, TMetricImage, TStrainValueType >::SetMetricImageFilter().
|
overrideprotecteddefault |
|
overrideprotectedvirtual |
This filter produces the LargestPossibleRegion.
Reimplemented from itk::ProcessObject.
Reimplemented in itk::BlockMatching::NormalizedCrossCorrelationMetricImageFilter< TFixedImage, TMovingImage, TMetricImage >.
|
overrideprotectedvirtual |
We set the fixed and moving image's requested region. The fixed image's requested region is equal to FixedImageRegion and the moving image's requested region is equal to the MovingImageRegion dilated by a radius related to the FixedImageRegion's size.
Reimplemented from itk::ImageToImageFilter< TFixedImage, TMetricImage >.
|
overrideprotectedvirtual |
Generate the information describing the output data. The default implementation of this method will copy information from the input to the output. A filter may override this method if its output will have different information than its input. For instance, a filter that shrinks an image will need to provide an implementation for this method that changes the spacing of the pixels. Such filters should call their superclass' implementation of this method prior to changing the information values they need (i.e. GenerateOutputInformation() should call Superclass::GenerateOutputInformation() prior to changing the information.
Reimplemented from itk::ProcessObject.
Reimplemented in itk::BlockMatching::NormalizedCrossCorrelationMetricImageFilter< TFixedImage, TMovingImage, TMetricImage >.
|
virtual |
|
virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TFixedImage, TMetricImage >.
Reimplemented in itk::BlockMatching::BlockAffineTransformMetricImageFilter< TFixedImage, TMovingImage, TMetricImage, TStrainValueType >, itk::BlockMatching::ImageToImageMetricMetricImageFilter< TFixedImage, TMovingImage, TMetricImage >, itk::BlockMatching::NormalizedCrossCorrelationFFTMetricImageFilter< TFixedImage, TMovingImage, TMetricImage >, and itk::BlockMatching::NormalizedCrossCorrelationMetricImageFilter< TFixedImage, TMovingImage, TMetricImage >.
| void itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::SetFixedImage | ( | FixedImageType * | fixedImage | ) |
Set the fixed image.
| void itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::SetFixedImageRegion | ( | const FixedImageRegionType & | region | ) |
Set/Get the fixed image region. This will defined the kernel in the fixed image to be compared against the moving. Every pixel in this region will be compared against the moving image region to generate a pixel in the output metric image.
| void itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::SetMovingImage | ( | MovingImageType * | movingImage | ) |
Set the moving image.
| void itk::BlockMatching::MetricImageFilter< TFixedImage, TMovingImage, TMetricImage >::SetMovingImageRegion | ( | const MovingImageRegionType & | region | ) |
Set/Get the moving image region. This will defined the search region over which the FixedImageRegion will be iteratively translated over to create the metric image.
|
staticconstexpr |
ImageDimension enumeration.
Definition at line 70 of file itkBlockMatchingMetricImageFilter.h.
|
protected |
Definition at line 128 of file itkBlockMatchingMetricImageFilter.h.
|
protected |
Definition at line 131 of file itkBlockMatchingMetricImageFilter.h.
|
protected |
Definition at line 136 of file itkBlockMatchingMetricImageFilter.h.
|
protected |
Definition at line 129 of file itkBlockMatchingMetricImageFilter.h.
|
protected |
Definition at line 132 of file itkBlockMatchingMetricImageFilter.h.
|
protected |
Definition at line 140 of file itkBlockMatchingMetricImageFilter.h.