ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes
itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram > Class Template Reference

#include <itkMaskedMovingHistogramImageFilter.h>

+ Inheritance diagram for itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >:
+ Collaboration diagram for itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef
ProcessObject::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
typedef THistogram HistogramType
typedef TInputImage::IndexType IndexType
typedef TInputImage InputImageType
typedef TInputImage::PixelType InputPixelType
typedef KernelType::ConstIterator KernelIteratorType
typedef TKernel KernelType
typedef TMaskImage MaskImageType
typedef MaskImageType::PixelType MaskPixelType
typedef std::list< OffsetTypeOffsetListType
typedef std::map< OffsetType,
OffsetListType, typename
Functor::OffsetLexicographicCompare
< itkGetStaticConstMacro(ImageDimension) > > 
OffsetMapType
typedef TInputImage::OffsetType OffsetType
typedef
Superclass::OutputImageRegionType 
OutputImageRegionType
typedef TOutputImage OutputImageType
typedef TOutputImage::PixelType OutputPixelType
typedef TInputImage::PixelType PixelType
typedef SmartPointer< SelfPointer
typedef KernelType::SizeType RadiusType
typedef TInputImage::RegionType RegionType
typedef
MaskedMovingHistogramImageFilter 
Self
typedef TInputImage::SizeType SizeType
typedef
MovingHistogramImageFilterBase
< TInputImage, TOutputImage,
TKernel > 
Superclass

Public Member Functions

void AllocateOutputs ()
virtual void ConfigureHistogram (THistogram &)
virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual MaskPixelType GetBackgroundMaskValue () const
virtual OutputPixelType GetFillValue () const
virtual bool GetGenerateOutputMask () const
MaskImageTypeGetMaskImage ()
virtual MaskPixelType GetMaskValue () const
virtual const char * GetNameOfClass () const
MaskImageTypeGetOutputMask ()
DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx)
virtual void SetBackgroundMaskValue (MaskPixelType _arg)
virtual void SetFillValue (OutputPixelType _arg)
void SetGenerateOutputMask (bool)
void SetInput1 (InputImageType *input)
void SetInput2 (MaskImageType *input)
void SetMaskImage (MaskImageType *input)
virtual void SetMaskValue (MaskPixelType _arg)

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int ImageDimension = TInputImage::ImageDimension

Protected Member Functions

 MaskedMovingHistogramImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const
void pushHistogram (HistogramType &histogram, const OffsetListType *addedList, const OffsetListType *removedList, const RegionType &inputRegion, const RegionType &kernRegion, const InputImageType *inputImage, const MaskImageType *maskImage, const IndexType currentIdx)
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 ~MaskedMovingHistogramImageFilter ()

Private Member Functions

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

Private Attributes

MaskPixelType m_BackgroundMaskValue
OutputPixelType m_FillValue
bool m_GenerateOutputMask
MaskPixelType m_MaskValue

Detailed Description

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
class itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >

This code was contributed in the Insight Journal paper: "Efficient implementation of kernel filtering" by Beare R., Lehmann G http://hdl.handle.net/1926/555 http://www.insight-journal.org/browse/publication/160

Author:
Richard Beare
Gaetan Lehmann

Definition at line 43 of file itkMaskedMovingHistogramImageFilter.h.


Member Typedef Documentation

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef SmartPointer< const Self > itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::ConstPointer
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef ProcessObject::DataObjectPointerArraySizeType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::DataObjectPointerArraySizeType

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 123 of file itkMaskedMovingHistogramImageFilter.h.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef THistogram itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::HistogramType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef TInputImage::IndexType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::IndexType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef TInputImage itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::InputImageType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef TInputImage::PixelType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::InputPixelType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef KernelType::ConstIterator itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::KernelIteratorType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef TKernel itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::KernelType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef TMaskImage itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::MaskImageType

Definition at line 62 of file itkMaskedMovingHistogramImageFilter.h.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef MaskImageType::PixelType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::MaskPixelType

Definition at line 71 of file itkMaskedMovingHistogramImageFilter.h.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef std::list< OffsetType > itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::OffsetListType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef std::map< OffsetType, OffsetListType, typename Functor::OffsetLexicographicCompare< itkGetStaticConstMacro(ImageDimension) > > itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::OffsetMapType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef TInputImage::OffsetType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::OffsetType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef Superclass::OutputImageRegionType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::OutputImageRegionType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef TOutputImage itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::OutputImageType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef TOutputImage::PixelType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::OutputPixelType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef TInputImage::PixelType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::PixelType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef SmartPointer< Self > itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::Pointer
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef KernelType::SizeType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::RadiusType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef TInputImage::RegionType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::RegionType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef MaskedMovingHistogramImageFilter itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::Self
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef TInputImage::SizeType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::SizeType
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
typedef MovingHistogramImageFilterBase< TInputImage, TOutputImage, TKernel > itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::Superclass

Constructor & Destructor Documentation

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::MaskedMovingHistogramImageFilter ( ) [protected]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::~MaskedMovingHistogramImageFilter ( ) [inline, protected]

Definition at line 146 of file itkMaskedMovingHistogramImageFilter.h.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::MaskedMovingHistogramImageFilter ( const Self ) [private]

Member Function Documentation

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::AllocateOutputs ( ) [virtual]

The GenerateData method normally allocates the buffers for all of the outputs of a filter. Some filters may want to override this default behavior. For example, a filter may have multiple outputs with varying resolution. Or a filter may want to process data in place by grafting its input to its output.

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
virtual void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::ConfigureHistogram ( THistogram &  ) [inline, virtual]

ConfigurewHistogram can be used to configure the histogram. The default version just do nothing.

Definition at line 142 of file itkMaskedMovingHistogramImageFilter.h.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
virtual::itk::LightObject::Pointer itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::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::MovingHistogramImageFilterBase< TInputImage, TOutputImage, TKernel >.

Reimplemented in itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
virtual MaskPixelType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::GetBackgroundMaskValue ( ) const [virtual]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
virtual OutputPixelType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::GetFillValue ( ) const [virtual]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
virtual bool itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::GetGenerateOutputMask ( ) const [virtual]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
MaskImageType* itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::GetMaskImage ( ) [inline]

Get the marker image

Definition at line 82 of file itkMaskedMovingHistogramImageFilter.h.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
virtual MaskPixelType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::GetMaskValue ( ) const [virtual]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
virtual const char* itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::GetNameOfClass ( ) const [virtual]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
MaskImageType* itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::GetOutputMask ( )

Get the modified mask image

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
DataObject::Pointer itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::MakeOutput ( DataObjectPointerArraySizeType  idx) [virtual]

Make a DataObject of the correct type to used as the specified output. Every ProcessObject subclass must be able to create a DataObject that can be used as a specified output. This method is automatically called when DataObject::DisconnectPipeline() is called. DataObject::DisconnectPipeline, disconnects a data object from being an output of its current source. When the data object is disconnected, the ProcessObject needs to construct a replacement output data object so that the ProcessObject is in a valid state. So DataObject::DisconnectPipeline eventually calls ProcessObject::MakeOutput. Note that MakeOutput always returns a itkSmartPointer to a DataObject. ImageSource and MeshSource override this method to create the correct type of image and mesh respectively. If a filter has multiple outputs of different types, then that filter must provide an implementation of MakeOutput().

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
static Pointer itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::New ( ) [static]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::operator= ( const Self ) [private]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

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::MovingHistogramImageFilterBase< TInputImage, TOutputImage, TKernel >.

Reimplemented in itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::pushHistogram ( HistogramType histogram,
const OffsetListType addedList,
const OffsetListType removedList,
const RegionType inputRegion,
const RegionType kernRegion,
const InputImageType inputImage,
const MaskImageType maskImage,
const IndexType  currentIdx 
) [protected]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
virtual void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::SetBackgroundMaskValue ( MaskPixelType  _arg) [virtual]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
virtual void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::SetFillValue ( OutputPixelType  _arg) [virtual]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::SetGenerateOutputMask ( bool  )
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::SetInput1 ( InputImageType input) [inline]

Set the input image

Definition at line 88 of file itkMaskedMovingHistogramImageFilter.h.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::SetInput2 ( MaskImageType input) [inline]

Set the marker image

Definition at line 94 of file itkMaskedMovingHistogramImageFilter.h.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::SetMaskImage ( MaskImageType input) [inline]

Set the marker image

Definition at line 75 of file itkMaskedMovingHistogramImageFilter.h.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
virtual void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::SetMaskValue ( MaskPixelType  _arg) [virtual]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
void itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
ThreadIdType  threadId 
) [protected, virtual]

Multi-thread version GenerateData.

Reimplemented from itk::ImageSource< TOutputImage >.


Member Data Documentation

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
const unsigned int itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::ImageDimension = TInputImage::ImageDimension [static]
template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
MaskPixelType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::m_BackgroundMaskValue [private]

Definition at line 174 of file itkMaskedMovingHistogramImageFilter.h.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
OutputPixelType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::m_FillValue [private]

Definition at line 170 of file itkMaskedMovingHistogramImageFilter.h.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
bool itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::m_GenerateOutputMask [private]

Definition at line 168 of file itkMaskedMovingHistogramImageFilter.h.

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel, class THistogram>
MaskPixelType itk::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, THistogram >::m_MaskValue [private]

Definition at line 172 of file itkMaskedMovingHistogramImageFilter.h.


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