ITK  4.2.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes
itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement > Class Template Reference

#include <itkHistogramMatchingImageFilter.h>

+ Inheritance diagram for itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >:
+ Collaboration diagram for itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef HistogramType::Pointer HistogramPointer
typedef Statistics::Histogram
< THistogramMeasurement > 
HistogramType
typedef
Superclass::InputImageConstPointer 
InputImageConstPointer
typedef
Superclass::InputImagePointer 
InputImagePointer
typedef Superclass::InputImageType InputImageType
typedef InputImageType::PixelType InputPixelType
typedef
Superclass::OutputImagePointer 
OutputImagePointer
typedef TOutputImage::RegionType OutputImageRegionType
typedef Superclass::OutputImageType OutputImageType
typedef OutputImageType::PixelType OutputPixelType
typedef SmartPointer< SelfPointer
typedef
HistogramMatchingImageFilter 
Self
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
typedef InputImageType::PixelType InputImagePixelType
typedef InputImageType::RegionType InputImageRegionType
typedef
Superclass::OutputImagePixelType 
OutputImagePixelType
- Public Types inherited from itk::ImageSource< TOutputImage >
typedef
Superclass::DataObjectIdentifierType 
DataObjectIdentifierType
typedef DataObject::Pointer DataObjectPointer
typedef
Superclass::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
- Public Types inherited from itk::ProcessObject
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
typedef std::vector
< DataObjectIdentifierType
NameArray
- Public Types inherited from itk::Object
- Public Types inherited from itk::LightObject

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual void GenerateInputRequestedRegion ()
virtual const char * GetNameOfClass () const
const InputImageTypeGetReferenceImage (void)
void SetReferenceImage (const InputImageType *reference)
 typedef (Concept::Convertible< int, InputPixelType >) IntConvertibleToInputCheck
 typedef (Concept::SameDimension< ImageDimension, OutputImageDimension >) SameDimensionCheck
 typedef (Concept::Convertible< double, InputPixelType >) DoubleConvertibleToInputCheck
 typedef (Concept::Convertible< double, OutputPixelType >) DoubleConvertibleToOutputCheck
 typedef (Concept::Convertible< InputPixelType, double >) InputConvertibleToDoubleCheck
 typedef (Concept::Convertible< OutputPixelType, double >) OutputConvertibleToDoubleCheck
 typedef (Concept::SameType< InputPixelType, OutputPixelType >) SameTypeCheck
void SetSourceImage (const InputImageType *source)
const InputImageTypeGetSourceImage (void)
virtual void SetNumberOfHistogramLevels (SizeValueType _arg)
virtual SizeValueType GetNumberOfHistogramLevels () const
virtual void SetNumberOfMatchPoints (SizeValueType _arg)
virtual SizeValueType GetNumberOfMatchPoints () const
virtual void SetThresholdAtMeanIntensity (bool _arg)
virtual bool GetThresholdAtMeanIntensity () const
virtual void ThresholdAtMeanIntensityOn ()
virtual void ThresholdAtMeanIntensityOff ()
virtual HistogramTypeGetSourceHistogram ()
virtual HistogramTypeGetReferenceHistogram ()
virtual HistogramTypeGetOutputHistogram ()
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
const InputImageTypeGetInput (void) const
const InputImageTypeGetInput (unsigned int idx) const
virtual void PopBackInput ()
virtual void PopFrontInput ()
virtual void PushBackInput (const InputImageType *image)
virtual void PushFrontInput (const InputImageType *image)
virtual void SetInput (const InputImageType *image)
virtual void SetInput (unsigned int, const TInputImage *image)
- Public Member Functions inherited from itk::ImageSource< TOutputImage >
OutputImageTypeGetOutput (unsigned int idx)
virtual void GraftNthOutput (unsigned int idx, DataObject *output)
virtual void GraftOutput (DataObject *output)
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *output)
OutputImageTypeGetOutput (void)
const OutputImageTypeGetOutput (void) const
virtual
ProcessObject::DataObjectPointer 
MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx)
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
virtual void AbortGenerateDataOn ()
virtual void EnlargeOutputRequestedRegion (DataObject *)
virtual const bool & GetAbortGenerateData ()
NameArray GetInputNames () const
MultiThreader * GetMultiThreader () const
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
DataObjectPointerArraySizeType GetNumberOfInputs () const
DataObjectPointerArraySizeType GetNumberOfOutputs () const
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
NameArray GetOutputNames () const
virtual const float & GetProgress ()
NameArray GetRequiredInputNames () const
bool HasInput (const DataObjectIdentifierType &key) const
bool HasOutput (const DataObjectIdentifierType &key) const
virtual DataObjectPointer MakeOutput (const DataObjectIdentifierType &)
virtual void PrepareOutputs ()
virtual void PropagateRequestedRegion (DataObject *output)
virtual void ResetPipeline ()
virtual void SetAbortGenerateData (bool _arg)
virtual void SetProgress (float _arg)
virtual void Update ()
virtual void UpdateLargestPossibleRegion ()
virtual void UpdateOutputData (DataObject *output)
virtual void UpdateOutputInformation ()
void UpdateProgress (float amount)
DataObjectPointerArray GetInputs ()
DataObjectPointerArray GetOutputs ()
DataObjectPointerArray GetIndexedInputs ()
DataObjectPointerArray GetIndexedOutputs ()
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
virtual void SetReleaseDataFlag (bool flag)
virtual bool GetReleaseDataFlag () const
void ReleaseDataFlagOn ()
void ReleaseDataFlagOff ()
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
virtual const bool & GetReleaseDataBeforeUpdateFlag ()
virtual void ReleaseDataBeforeUpdateFlagOn ()
virtual void ReleaseDataBeforeUpdateFlagOff ()
virtual void SetNumberOfThreads (ThreadIdType _arg)
virtual const ThreadIdTypeGetNumberOfThreads ()
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
unsigned long AddObserver (const EventObject &event, Command *) const
virtual void DebugOff () const
virtual void DebugOn () const
CommandGetCommand (unsigned long tag)
bool GetDebug () const
MetaDataDictionaryGetMetaDataDictionary (void)
const MetaDataDictionaryGetMetaDataDictionary (void) const
virtual unsigned long GetMTime () const
virtual const TimeStampGetTimeStamp () const
bool HasObserver (const EventObject &event) const
void InvokeEvent (const EventObject &)
void InvokeEvent (const EventObject &) const
virtual void Modified () const
virtual void Register () const
void RemoveAllObservers ()
void RemoveObserver (unsigned long tag)
void SetDebug (bool debugFlag) const
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
virtual void SetReferenceCount (int)
virtual void UnRegister () const
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
virtual int GetReferenceCount () const
 itkCloneMacro (Self)
void Print (std::ostream &os, Indent indent=0) const

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int ImageDimension = TInputImage::ImageDimension
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension
- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
static const unsigned int InputImageDimension = TInputImage::ImageDimension
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >

Protected Member Functions

void AfterThreadedGenerateData ()
void BeforeThreadedGenerateData ()
void ComputeMinMaxMean (const InputImageType *image, THistogramMeasurement &minValue, THistogramMeasurement &maxValue, THistogramMeasurement &meanValue)
void ConstructHistogram (const InputImageType *image, HistogramType *histogram, const THistogramMeasurement minValue, const THistogramMeasurement maxValue)
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
virtual void VerifyInputInformation ()
 HistogramMatchingImageFilter ()
 ~HistogramMatchingImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
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)
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
virtual void AllocateOutputs ()
virtual void GenerateData ()
 ImageSource ()
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion)
virtual ~ImageSource ()
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
virtual void AddOutput (DataObject *output)
bool AddRequiredInputName (const DataObjectIdentifierType &)
virtual void CacheInputReleaseDataFlags ()
virtual void GenerateOutputInformation ()
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 ()
DataObjectGetInput (const DataObjectIdentifierType &key)
const DataObjectGetInput (const DataObjectIdentifierType &key) const
DataObjectGetInput (DataObjectPointerArraySizeType)
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
DataObjectGetPrimaryInput ()
const DataObjectGetPrimaryInput () const
DataObjectGetOutput (const DataObjectIdentifierType &key)
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
DataObjectGetPrimaryOutput ()
const DataObjectGetPrimaryOutput () const
- Protected Member Functions inherited from itk::Object
 Object ()
bool PrintObservers (std::ostream &os, Indent indent) const
virtual void SetTimeStamp (const TimeStamp &time)
virtual ~Object ()
- Protected Member Functions inherited from itk::LightObject
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 Types

typedef vnl_vector< double > GradientArrayType
typedef vnl_matrix< double > TableType

Private Member Functions

 HistogramMatchingImageFilter (const Self &)
void operator= (const Self &)

Private Attributes

GradientArrayType m_Gradients
double m_LowerGradient
SizeValueType m_NumberOfHistogramLevels
SizeValueType m_NumberOfMatchPoints
HistogramPointer m_OutputHistogram
OutputPixelType m_OutputIntensityThreshold
THistogramMeasurement m_OutputMaxValue
THistogramMeasurement m_OutputMeanValue
THistogramMeasurement m_OutputMinValue
TableType m_QuantileTable
HistogramPointer m_ReferenceHistogram
InputPixelType m_ReferenceIntensityThreshold
THistogramMeasurement m_ReferenceMaxValue
THistogramMeasurement m_ReferenceMeanValue
THistogramMeasurement m_ReferenceMinValue
HistogramPointer m_SourceHistogram
InputPixelType m_SourceIntensityThreshold
THistogramMeasurement m_SourceMaxValue
THistogramMeasurement m_SourceMeanValue
THistogramMeasurement m_SourceMinValue
bool m_ThresholdAtMeanIntensity
double m_UpperGradient

Additional Inherited Members

- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(OutputImageDimension),
itkGetStaticConstMacro(InputImageDimension) > 
InputToOutputRegionCopierType
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(InputImageDimension),
itkGetStaticConstMacro(OutputImageDimension) > 
OutputToInputRegionCopierType

Detailed Description

template<class TInputImage, class TOutputImage, class THistogramMeasurement = typename TInputImage::PixelType>
class itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >

Normalize the grayscale values between two images by histogram matching.

HistogramMatchingImageFilter normalizes the grayscale values of a source image based on the grayscale values of a reference image. This filter uses a histogram matching technique where the histograms of the two images are matched only at a specified number of quantile values.

This filter was originally designed to normalize MR images of the same MR protocol and same body part. The algorithm works best if background pixels are excluded from both the source and reference histograms. A simple background exclusion method is to exclude all pixels whose grayscale values are smaller than the mean grayscale value. ThresholdAtMeanIntensityOn() switches on this simple background exclusion method.

The source image can be set via either SetInput() or SetSourceImage(). The reference image can be set via SetReferenceImage().

SetNumberOfHistogramLevels() sets the number of bins used when creating histograms of the source and reference images. SetNumberOfMatchPoints() governs the number of quantile values to be matched.

This filter assumes that both the source and reference are of the same type and that the input and output image type have the same number of dimension and have scalar pixel types.

REFERENCE
Laszlo G. Nyul, Jayaram K. Udupa, and Xuan Zhang, "New Variants of a Method of MRI Scale Standardization", IEEE Transactions on Medical Imaging, 19(2):143-150, 2000.

Definition at line 68 of file itkHistogramMatchingImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef SmartPointer< const Self > itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::ConstPointer
template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef vnl_vector< double > itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::GradientArrayType
private

Definition at line 231 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef HistogramType::Pointer itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::HistogramPointer

Definition at line 107 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef Statistics::Histogram< THistogramMeasurement > itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::HistogramType

Histogram related typedefs.

Definition at line 106 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef Superclass::InputImageConstPointer itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::InputImageConstPointer
template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef Superclass::InputImagePointer itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::InputImagePointer
template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef Superclass::InputImageType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::InputImageType

Inherited typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 95 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef InputImageType::PixelType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::InputPixelType

Pixel related typedefs.

Definition at line 102 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef Superclass::OutputImagePointer itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::OutputImagePointer

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 99 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef TOutputImage::RegionType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::OutputImageRegionType

Typedef to describe the output image region type.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 92 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef Superclass::OutputImageType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::OutputImageType

Some convenient typedefs.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 98 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef OutputImageType::PixelType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::OutputPixelType

Definition at line 103 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef SmartPointer< Self > itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::Pointer
template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef HistogramMatchingImageFilter itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::Self

Standard class typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 73 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::Superclass
template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
typedef vnl_matrix< double > itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::TableType
private

Definition at line 228 of file itkHistogramMatchingImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::HistogramMatchingImageFilter ( )
protected

End concept checking

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::~HistogramMatchingImageFilter ( )
inlineprotected

End concept checking

Definition at line 173 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::HistogramMatchingImageFilter ( const Self )
private

Member Function Documentation

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::AfterThreadedGenerateData ( void  )
protectedvirtual

If an imaging filter needs to perform processing after all processing threads have completed, the filter can can provide an implementation for AfterThreadedGenerateData(). 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::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::BeforeThreadedGenerateData ( void  )
protectedvirtual

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::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::ComputeMinMaxMean ( const InputImageType image,
THistogramMeasurement &  minValue,
THistogramMeasurement &  maxValue,
THistogramMeasurement &  meanValue 
)
protected

Compute min, max and mean of an image.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::ConstructHistogram ( const InputImageType image,
HistogramType histogram,
const THistogramMeasurement  minValue,
const THistogramMeasurement  maxValue 
)
protected

Construct a histogram from an image.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual::itk::LightObject::Pointer itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::CreateAnother ( void  ) const
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::Object.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::GenerateInputRequestedRegion ( )
virtual

This filter requires all of the input to be in the buffer.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual const char* itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual SizeValueType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::GetNumberOfHistogramLevels ( ) const
virtual

Set/Get the number of histogram levels used.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual SizeValueType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::GetNumberOfMatchPoints ( ) const
virtual

Set/Get the number of match points used.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual HistogramType* itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::GetOutputHistogram ( )
virtual

Methods to get the histograms of the source, reference, and output. Objects are only valid after Update() has been called on this filter.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual HistogramType* itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::GetReferenceHistogram ( )
virtual

Methods to get the histograms of the source, reference, and output. Objects are only valid after Update() has been called on this filter.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
const InputImageType* itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::GetReferenceImage ( void  )
template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual HistogramType* itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::GetSourceHistogram ( )
virtual

Methods to get the histograms of the source, reference, and output. Objects are only valid after Update() has been called on this filter.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
const InputImageType* itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::GetSourceImage ( void  )
inline

Set/Get the source image.

Definition at line 112 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual bool itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::GetThresholdAtMeanIntensity ( ) const
virtual

Set/Get the threshold at mean intensity flag. If true, only source (reference) pixels which are greater than the mean source (reference) intensity is used in the histogram matching. If false, all pixels are used.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
static Pointer itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::New ( )
static

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::operator= ( const Self )
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::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual

End concept checking

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::SetNumberOfHistogramLevels ( SizeValueType  _arg)
virtual

Set/Get the number of histogram levels used.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::SetNumberOfMatchPoints ( SizeValueType  _arg)
virtual

Set/Get the number of match points used.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::SetReferenceImage ( const InputImageType reference)

Set/Get the reference image.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::SetSourceImage ( const InputImageType source)
inline

Set/Get the source image.

Definition at line 110 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::SetThresholdAtMeanIntensity ( bool  _arg)
virtual

Set/Get the threshold at mean intensity flag. If true, only source (reference) pixels which are greater than the mean source (reference) intensity is used in the histogram matching. If false, all pixels are used.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
ThreadIdType  threadId 
)
protectedvirtual

If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData(). This superclass will automatically split the output image into a number of pieces, spawn multiple threads, and call ThreadedGenerateData() in each thread. Prior to spawning threads, the BeforeThreadedGenerateData() method is called. After all the threads have completed, the AfterThreadedGenerateData() method is called. If an image processing filter cannot support threading, that filter should provide an implementation of the GenerateData() method instead of providing an implementation of ThreadedGenerateData(). If a filter provides a GenerateData() method as its implementation, then the filter is responsible for allocating the output data. If a filter provides a ThreadedGenerateData() method as its implementation, then the output memory will allocated automatically by this superclass. The ThreadedGenerateData() method should only produce the output specified by "outputThreadRegion" parameter. ThreadedGenerateData() cannot write to any other portion of the output image (as this is responsibility of a different thread).

See also:
GenerateData(), SplitRequestedRegion()

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::ThresholdAtMeanIntensityOff ( )
virtual

Set/Get the threshold at mean intensity flag. If true, only source (reference) pixels which are greater than the mean source (reference) intensity is used in the histogram matching. If false, all pixels are used.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::ThresholdAtMeanIntensityOn ( )
virtual

Set/Get the threshold at mean intensity flag. If true, only source (reference) pixels which are greater than the mean source (reference) intensity is used in the histogram matching. If false, all pixels are used.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::typedef ( Concept::Convertible< int, InputPixelType )

Begin concept checking This class requires IntConvertibleToInputCheck in the form of ( Concept::Convertible< int, InputPixelType > )

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::typedef ( Concept::SameDimension< ImageDimension, OutputImageDimension )

This class requires SameDimensionCheck in the form of ( Concept::SameDimension< ImageDimension, OutputImageDimension > )

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::typedef ( Concept::Convertible< double, InputPixelType )

This class requires DoubleConvertibleToInputCheck in the form of ( Concept::Convertible< double, InputPixelType > )

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::typedef ( Concept::Convertible< double, OutputPixelType )

This class requires DoubleConvertibleToOutputCheck in the form of ( Concept::Convertible< double, OutputPixelType > )

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::typedef ( Concept::Convertible< InputPixelType, double >  )

This class requires InputConvertibleToDoubleCheck in the form of ( Concept::Convertible< InputPixelType, double > )

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::typedef ( Concept::Convertible< OutputPixelType, double >  )

This class requires OutputConvertibleToDoubleCheck in the form of ( Concept::Convertible< OutputPixelType, double > )

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::typedef ( Concept::SameType< InputPixelType, OutputPixelType )

This class requires SameTypeCheck in the form of ( Concept::SameType< InputPixelType, OutputPixelType > )

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
virtual void itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::VerifyInputInformation ( )
inlineprotectedvirtual

Override VeriyInputInformation() since this filter does not expect the input images to occupy the same physical space.

See also:
ProcessObject::VerifyInputInformation

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 189 of file itkHistogramMatchingImageFilter.h.


Member Data Documentation

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
const unsigned int itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::ImageDimension = TInputImage::ImageDimension
static

ImageDimension enumeration.

Definition at line 86 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
GradientArrayType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_Gradients
private

Definition at line 232 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
double itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_LowerGradient
private

Definition at line 233 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
SizeValueType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_NumberOfHistogramLevels
private

Definition at line 206 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
SizeValueType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_NumberOfMatchPoints
private

Definition at line 207 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
HistogramPointer itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_OutputHistogram
private

Definition at line 226 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
OutputPixelType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_OutputIntensityThreshold
private

Definition at line 212 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
THistogramMeasurement itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_OutputMaxValue
private

Definition at line 221 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
THistogramMeasurement itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_OutputMeanValue
private

Definition at line 222 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
THistogramMeasurement itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_OutputMinValue
private

Definition at line 220 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
TableType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_QuantileTable
private

Definition at line 229 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
HistogramPointer itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_ReferenceHistogram
private

Definition at line 225 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
InputPixelType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_ReferenceIntensityThreshold
private

Definition at line 211 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
THistogramMeasurement itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_ReferenceMaxValue
private

Definition at line 218 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
THistogramMeasurement itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_ReferenceMeanValue
private

Definition at line 219 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
THistogramMeasurement itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_ReferenceMinValue
private

Definition at line 217 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
HistogramPointer itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_SourceHistogram
private

Definition at line 224 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
InputPixelType itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_SourceIntensityThreshold
private

Definition at line 210 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
THistogramMeasurement itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_SourceMaxValue
private

Definition at line 215 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
THistogramMeasurement itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_SourceMeanValue
private

Definition at line 216 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
THistogramMeasurement itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_SourceMinValue
private

Definition at line 214 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
bool itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_ThresholdAtMeanIntensity
private

Definition at line 208 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
double itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::m_UpperGradient
private

Definition at line 234 of file itkHistogramMatchingImageFilter.h.

template<class TInputImage , class TOutputImage , class THistogramMeasurement = typename TInputImage::PixelType>
const unsigned int itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::OutputImageDimension = TOutputImage::ImageDimension
static

ImageDimension enumeration.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 88 of file itkHistogramMatchingImageFilter.h.


The documentation for this class was generated from the following file: