![]() |
ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkFFTNormalizedCorrelationImageFilter.h>
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = TOutputImage::ImageDimension |
![]() | |
![]() | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
![]() |
Protected Member Functions | |
FFTNormalizedCorrelationImageFilter () | |
void | GenerateData () |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual | ~FFTNormalizedCorrelationImageFilter () |
![]() | |
template<class LocalInputImageType , class LocalOutputImageType > | |
LocalOutputImageType::Pointer | CalculateForwardFFT (LocalInputImageType *inputImage, InputSizeType &FFTImageSize) |
template<class LocalInputImageType , class LocalOutputImageType > | |
LocalOutputImageType::Pointer | CalculateInverseFFT (LocalInputImageType *inputImage, RealSizeType &combinedImageSize) |
template<class LocalInputImageType > | |
double | CalculatePrecisionTolerance (LocalInputImageType *inputImage) |
template<class LocalInputImageType > | |
LocalInputImageType::Pointer | ElementPositive (LocalInputImageType *inputImage) |
template<class LocalInputImageType , class LocalOutputImageType > | |
LocalOutputImageType::Pointer | ElementProduct (LocalInputImageType *inputImage1, LocalInputImageType *inputImage2) |
template<class LocalInputImageType > | |
LocalInputImageType::Pointer | ElementQuotient (LocalInputImageType *inputImage1, LocalInputImageType *inputImage2) |
template<class LocalInputImageType , class LocalOutputImageType > | |
LocalOutputImageType::Pointer | ElementRound (LocalInputImageType *inputImage) |
template<class LocalInputImageType > | |
LocalInputImageType::Pointer | ElementSubtraction (LocalInputImageType *inputImage1, LocalInputImageType *inputImage2) |
int | FactorizeNumber (int n) |
int | FindClosestValidDimension (int n) |
virtual void | GenerateInputRequestedRegion () |
void | GenerateOutputInformation () |
MaskedFFTNormalizedCorrelationImageFilter () | |
template<class LocalInputImageType > | |
LocalInputImageType::Pointer | PreProcessImage (const LocalInputImageType *inputImage, LocalInputImageType *inputMask) |
template<class LocalInputImageType > | |
LocalInputImageType::Pointer | PreProcessMask (const LocalInputImageType *inputImage, const LocalInputImageType *inputMask) |
TInputImage::Pointer | RotateImage (InputImageType *inputImage) |
void | VerifyInputInformation () |
virtual | ~MaskedFFTNormalizedCorrelationImageFilter () |
![]() | |
virtual void | CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion) |
virtual void | CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion) |
ImageToImageFilter () | |
~ImageToImageFilter () | |
void | PushBackInput (const DataObject *input) |
void | PushFrontInput (const DataObject *input) |
![]() | |
virtual void | AfterThreadedGenerateData () |
virtual void | AllocateOutputs () |
virtual void | BeforeThreadedGenerateData () |
ImageSource () | |
virtual unsigned int | SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion) |
virtual void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) |
virtual | ~ImageSource () |
![]() | |
virtual void | AddInput (DataObject *input) |
virtual void | AddOutput (DataObject *output) |
bool | AddRequiredInputName (const DataObjectIdentifierType &) |
virtual void | CacheInputReleaseDataFlags () |
virtual void | GenerateOutputRequestedRegion (DataObject *output) |
virtual const DataObjectPointerArraySizeType & | GetNumberOfRequiredInputs () |
virtual const DataObjectPointerArraySizeType & | GetNumberOfRequiredOutputs () |
bool | IsIndexedName (const DataObjectIdentifierType &) const |
bool | IsRequiredInputName (const DataObjectIdentifierType &) const |
itkLegacyMacro (virtual void RemoveInput(DataObject *input)) | |
itkLegacyMacro (virtual void RemoveOutput(DataObject *output)) | |
itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num)) | |
itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num)) | |
DataObjectPointerArraySizeType | MakeIndexFromName (const DataObjectIdentifierType &) const |
DataObjectIdentifierType | MakeNameFromIndex (DataObjectPointerArraySizeType) const |
ProcessObject () | |
virtual void | PropagateResetPipeline () |
virtual void | ReleaseInputs () |
virtual void | RemoveInput (const DataObjectIdentifierType &key) |
virtual void | RemoveInput (DataObjectPointerArraySizeType) |
virtual void | RemoveOutput (const DataObjectIdentifierType &key) |
virtual void | RemoveOutput (DataObjectPointerArraySizeType idx) |
bool | RemoveRequiredInputName (const DataObjectIdentifierType &) |
virtual void | RestoreInputReleaseDataFlags () |
virtual void | SetInput (const DataObjectIdentifierType &key, DataObject *input) |
virtual void | SetNthInput (DataObjectPointerArraySizeType num, DataObject *input) |
virtual void | SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output) |
void | SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num) |
void | SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num) |
virtual void | SetNumberOfRequiredInputs (DataObjectPointerArraySizeType) |
virtual void | SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg) |
virtual void | SetOutput (const DataObjectIdentifierType &key, DataObject *output) |
virtual void | SetPrimaryInput (DataObject *input) |
virtual void | SetPrimaryOutput (DataObject *output) |
void | SetRequiredInputNames (const NameArray &) |
virtual void | VerifyPreconditions () |
~ProcessObject () | |
DataObject * | GetInput (const DataObjectIdentifierType &key) |
const DataObject * | GetInput (const DataObjectIdentifierType &key) const |
DataObject * | GetInput (DataObjectPointerArraySizeType) |
const DataObject * | GetInput (DataObjectPointerArraySizeType idx) const |
DataObject * | GetPrimaryInput () |
const DataObject * | GetPrimaryInput () const |
DataObject * | GetOutput (const DataObjectIdentifierType &key) |
const DataObject * | GetOutput (const DataObjectIdentifierType &key) const |
DataObject * | GetOutput (DataObjectPointerArraySizeType idx) |
const DataObject * | GetOutput (DataObjectPointerArraySizeType idx) const |
DataObject * | GetPrimaryOutput () |
const DataObject * | GetPrimaryOutput () const |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
![]() | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Member Functions | |
FFTNormalizedCorrelationImageFilter (const Self &) | |
void | operator= (const Self &) |
Calculate normalized cross correlation using FFTs.
This filter calculates the normalized cross correlation (NCC) of two images using FFTs instead of spatial correlation. It is much faster than spatial correlation for reasonably large structuring elements. This filter is a subclass of the more general MaskedFFTNormalizedCorrelationImageFilter and operates by essentially setting the masks in that algorithm to images of ones. As described in detail in the references below, there is no computational overhead to utilizing the more general masked algorithm because the FFTs of the images of ones are still necessary for the computations.
Inputs: Two images are required as inputs, fixedImage and movingImage. In the context of correlation, inputs are often defined as: "image" and "template". In this filter, the fixedImage plays the role of the image, and the movingImage plays the role of the template. However, this filter is capable of correlating any two images and is not restricted to small movingImages (templates).
Optional parameters: The RequiredNumberOfOverlappingPixels enables the user to specify how many voxels of the two images must overlap; any location in the correlation map that results from fewer than this number of voxels will be set to zero. Larger values zero-out pixels on a larger border around the correlation image. Thus, larger values remove less stable computations but also limit the capture range. If RequiredNumberOfOverlappingPixels is set to 0, the default, no zeroing will take place.
Image size: fixedImage and movingImage need not be the same size. Furthermore, whereas some algorithms require that the "template" be smaller than the "image" because of errors in the regions where the two are not fully overlapping, this filter has no such restriction.
Image spacing: Since the computations are done in the pixel domain, all input images must have the same spacing.
Outputs; The output is an image of RealPixelType that is the NCC of the two images and its values range from -1.0 to 1.0. The size of this NCC image is, by definition, size(fixedImage) + size(movingImage) - 1.
Example filter usage:
References: 1) D. Padfield. "Masked object registration in the Fourier domain." Transactions on Image Processing. 2) D. Padfield. "Masked FFT registration". In Proc. Computer Vision and Pattern Recognition, 2010.
Definition at line 99 of file itkFFTNormalizedCorrelationImageFilter.h.
typedef SmartPointer<const Self> itk::FFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >::ConstPointer |
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 107 of file itkFFTNormalizedCorrelationImageFilter.h.
typedef InputImageType::ConstPointer itk::FFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >::InputImageConstPointer |
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 125 of file itkFFTNormalizedCorrelationImageFilter.h.
typedef InputImageType::Pointer itk::FFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >::InputImagePointer |
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 124 of file itkFFTNormalizedCorrelationImageFilter.h.
typedef TInputImage itk::FFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >::InputImageType |
Extract some information from the image types.
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 121 of file itkFFTNormalizedCorrelationImageFilter.h.
typedef InputImageType::RegionType itk::FFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >::InputRegionType |
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 123 of file itkFFTNormalizedCorrelationImageFilter.h.
typedef InputImageType::SizeType itk::FFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >::InputSizeType |
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 126 of file itkFFTNormalizedCorrelationImageFilter.h.
typedef OutputImageType::Pointer itk::FFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >::OutputImagePointer |
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 127 of file itkFFTNormalizedCorrelationImageFilter.h.
typedef TOutputImage itk::FFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >::OutputImageType |
Some convenient typedefs.
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 122 of file itkFFTNormalizedCorrelationImageFilter.h.
typedef OutputImageType::PixelType itk::FFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >::OutputPixelType |
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 128 of file itkFFTNormalizedCorrelationImageFilter.h.
typedef SmartPointer<Self> itk::FFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >::Pointer |
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 106 of file itkFFTNormalizedCorrelationImageFilter.h.
typedef FFTNormalizedCorrelationImageFilter itk::FFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 104 of file itkFFTNormalizedCorrelationImageFilter.h.
typedef MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage > itk::FFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >::Superclass |
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 105 of file itkFFTNormalizedCorrelationImageFilter.h.
|
inlineprotected |
Definition at line 131 of file itkFFTNormalizedCorrelationImageFilter.h.
|
inlineprotectedvirtual |
Definition at line 132 of file itkFFTNormalizedCorrelationImageFilter.h.
|
private |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
|
protectedvirtual |
Standard pipeline method.
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
|
static |
Method for creation through the object factory.
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
|
private |
PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
|
protectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
|
static |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Reimplemented from itk::MaskedFFTNormalizedCorrelationImageFilter< TInputImage, TOutputImage >.
Definition at line 118 of file itkFFTNormalizedCorrelationImageFilter.h.