NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
calculate the mean intensity within a binary mask (region). More...
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 () |
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.
typedef SmartPointer<const Self> itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::ConstPointer |
typedef InputMainImageType::ConstPointer itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImageConstPointer |
typedef InputMainImageType::IndexType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImageIndexType |
typedef InputMainImageType::PixelType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImagePixelType |
typedef InputMainImageType::Pointer itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImagePointer |
typedef InputMainImageType::RegionType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImageRegionType |
typedef InputMainImageType::SizeType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImageSizeType |
typedef TInputImage1 itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMainImageType |
Some additional typedefs
typedef InputMaskImageType::ConstPointer itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImageConstPointer |
typedef InputMaskImageType::IndexType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImageIndexType |
typedef InputMaskImageType::PixelType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImagePixelType |
typedef InputMaskImageType::Pointer itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImagePointer |
typedef InputMaskImageType::RegionType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImageRegionType |
typedef InputMaskImageType::SizeType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImageSizeType |
typedef TInputImage2 itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::InputMaskImageType |
typedef OutputImageType::IndexType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::OutputImageIndexType |
typedef OutputImageType::Pointer itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::OutputImagePointer |
typedef OutputImageType::RegionType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::OutputImageRegionType |
typedef OutputImageType::SizeType itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::OutputImageSizeType |
typedef TInputImage1 itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::OutputImageType |
typedef SmartPointer<Self> itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::Pointer |
typedef MIDASMeanIntensityWithinARegionFilter itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::Self |
Standard class typedefs
typedef ImageToImageFilter<TInputImage1, TOutputImage> itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::SuperClass |
|
protected |
|
inlineprotectedvirtual |
|
protectedvirtual |
Do all the final calculations and other general stuff after the threads finish executing
|
protected |
Pass the input through unmodified. Do this by Grafting in the AllocateOutputs method.
|
protectedvirtual |
Do all initialization and other general stuff before starting the threads
|
virtual |
Run-time type information (and related methods)
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.
|
virtual |
double itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::GetMeanIntensityMainImage | ( | ) |
Method that retrieves the region mean, which is only valid after a successful Update() has been called.
|
static |
Method for creation through the object factory
|
protected |
void itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::SetBinaryImageInput | ( | const InputMaskImageType * | image | ) |
Set the second input, which is the binary mask, that will be eroded/dilated.
void itk::MIDASMeanIntensityWithinARegionFilter< TInputImage1, TInputImage2, TOutputImage >::SetGreyScaleImageInput | ( | const InputMainImageType * | image | ) |
Set the first input, for the grey scale image.
|
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.
|
protectedvirtual |