NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage > Class Template Reference

calculate the mean intensity within a binary mask (region). More...

Inheritance diagram for itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >:
Inheritance graph
[legend]
Collaboration diagram for itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >:
Collaboration graph
[legend]

Public Types

typedef
MIDASMeanIntensityWithinARegionFilter 
Self
 
typedef ImageToImageFilter
< TInputImage1, TOutputImage > 
SuperClass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef TInputImage1 InputMainImageType
 
typedef
InputMainImageType::ConstPointer 
InputMainImageConstPointer
 
typedef InputMainImageType::Pointer InputMainImagePointer
 
typedef
InputMainImageType::RegionType 
InputMainImageRegionType
 
typedef
InputMainImageType::PixelType 
InputMainImagePixelType
 
typedef
InputMainImageType::IndexType 
InputMainImageIndexType
 
typedef
InputMainImageType::SizeType 
InputMainImageSizeType
 
typedef TInputImage2 InputMaskImageType
 
typedef
InputMaskImageType::ConstPointer 
InputMaskImageConstPointer
 
typedef InputMaskImageType::Pointer InputMaskImagePointer
 
typedef
InputMaskImageType::RegionType 
InputMaskImageRegionType
 
typedef
InputMaskImageType::PixelType 
InputMaskImagePixelType
 
typedef
InputMaskImageType::IndexType 
InputMaskImageIndexType
 
typedef
InputMaskImageType::SizeType 
InputMaskImageSizeType
 
typedef TInputImage1 OutputImageType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef OutputImageType::SizeType OutputImageSizeType
 
typedef OutputImageType::IndexType OutputImageIndexType
 

Public Member Functions

virtual const char * GetClassName () const
 
void SetGreyScaleImageInput (const InputMainImageType *image)
 
void SetBinaryImageInput (const InputMaskImageType *image)
 
double GetMeanIntensityMainImage ()
 
unsigned long int GetCount ()
 
virtual void SetInValue (InputMaskImagePixelType _arg)
 
virtual InputMaskImagePixelType GetInValue () const
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 MIDASMeanIntensityWithinARegionFilter ()
 
virtual ~MIDASMeanIntensityWithinARegionFilter ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
void AllocateOutputs ()
 
virtual void BeforeThreadedGenerateData ()
 
virtual void ThreadedGenerateData (const InputMainImageRegionType &outputRegionForThread, ThreadIdType ThreadID)
 
virtual void AfterThreadedGenerateData ()
 

Detailed Description

template<class TInputImage1, class TInputImage2, class TOutputImage>
class itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >

calculate the mean intensity within a binary mask (region).

MIDASMeanIntensityWithinARegionFilter has two input images and one output image. The first input is specified using SetGreyScaleImageInput(), and should be grey scale, and the second input is specified using SetBinaryImageInput and should be a binary mask. The output is a copy of the input binary mask.

Member Typedef Documentation

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef SmartPointer<const Self> itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::ConstPointer
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef InputMainImageType::ConstPointer itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImageConstPointer
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef InputMainImageType::IndexType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImageIndexType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef InputMainImageType::PixelType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImagePixelType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef InputMainImageType::Pointer itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImagePointer
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef InputMainImageType::RegionType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImageRegionType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef InputMainImageType::SizeType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImageSizeType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef TInputImage1 itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImageType

Some additional typedefs

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef InputMaskImageType::ConstPointer itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImageConstPointer
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef InputMaskImageType::IndexType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImageIndexType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef InputMaskImageType::PixelType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImagePixelType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef InputMaskImageType::Pointer itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImagePointer
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef InputMaskImageType::RegionType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImageRegionType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef InputMaskImageType::SizeType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImageSizeType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef TInputImage2 itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImageType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef OutputImageType::IndexType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::OutputImageIndexType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef OutputImageType::Pointer itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::OutputImagePointer
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef OutputImageType::RegionType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::OutputImageRegionType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef OutputImageType::SizeType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::OutputImageSizeType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef TInputImage1 itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::OutputImageType
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef SmartPointer<Self> itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::Pointer
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef MIDASMeanIntensityWithinARegionFilter itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::Self

Standard class typedefs

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
typedef ImageToImageFilter<TInputImage1, TOutputImage> itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::SuperClass

Constructor & Destructor Documentation

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::MIDASMeanIntensityWithinARegionFilter ( )
protected
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
virtual itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::~MIDASMeanIntensityWithinARegionFilter ( )
inlineprotectedvirtual

Member Function Documentation

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
virtual void itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::AfterThreadedGenerateData ( )
protectedvirtual

Do all the final calculations and other general stuff after the threads finish executing

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
void itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::AllocateOutputs ( )
protected

Pass the input through unmodified. Do this by Grafting in the AllocateOutputs method.

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
virtual void itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::BeforeThreadedGenerateData ( )
protectedvirtual

Do all initialization and other general stuff before starting the threads

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
virtual const char* itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::GetClassName ( ) const
virtual

Run-time type information (and related methods)

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
unsigned long int itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::GetCount ( )

Method that retrieves the number of pixels that contributed to the mean, which is only valid after a successful Update() has been called.

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
virtual InputMaskImagePixelType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::GetInValue ( ) const
virtual
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
double itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::GetMeanIntensityMainImage ( )

Method that retrieves the region mean, which is only valid after a successful Update() has been called.

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
static Pointer itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::New ( )
static

Method for creation through the object factory

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
void itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protected
template<class TInputImage1 , class TInputImage2 , class TOutputImage >
void itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::SetBinaryImageInput ( const InputMaskImageType image)

Set the second input, which is the binary mask, that will be eroded/dilated.

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
void itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::SetGreyScaleImageInput ( const InputMainImageType image)

Set the first input, for the grey scale image.

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
virtual void itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::SetInValue ( InputMaskImagePixelType  _arg)
virtual

Set/Get the mask value that is considered 'inside' the region. Masks are normally [0,1], or [0,255], where 1 or 255 are considered within the region.

template<class TInputImage1 , class TInputImage2 , class TOutputImage >
virtual void itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::ThreadedGenerateData ( const InputMainImageRegionType outputRegionForThread,
ThreadIdType  ThreadID 
)
protectedvirtual

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