NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage > Class Template Reference
Inheritance diagram for itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >:
Inheritance graph
[legend]
Collaboration diagram for itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >:
Collaboration graph
[legend]

Public Types

typedef UCLLabelVotingImageFilter Self
 
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef TOutputImage::PixelType OutputPixelType
 
typedef TInputImage::PixelType InputPixelType
 
typedef TInputImage InputImageType
 
typedef TOutputImage OutputImageType
 
typedef
InputImageType::ConstPointer 
InputImagePointer
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef
Superclass::OutputImageRegionType 
OutputImageRegionType
 

Public Member Functions

virtual const char * GetClassName () const
 
 itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::ImageDimension)
 
 itkStaticConstMacro (ImageDimension, unsigned int, TOutputImage::ImageDimension)
 
virtual void SetLabelForUndecidedPixels (const OutputPixelType l)
 
virtual OutputPixelType GetLabelForUndecidedPixels () const
 
virtual void UnsetLabelForUndecidedPixels ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 UCLLabelVotingImageFilter ()
 
virtual ~UCLLabelVotingImageFilter ()
 
virtual InputPixelType ComputeMaximumInputValue ()
 
virtual void BeforeThreadedGenerateData ()
 
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 

Protected Attributes

OutputPixelType m_LabelForUndecidedPixels
 
bool m_HasLabelForUndecidedPixels
 
InputPixelType m_TotalLabelCount
 

Detailed Description

template<typename TInputImage, typename TOutputImage>
class itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >

UCLLabelVotingImageFilter: just copied from LabelVotingImageFilter with added option to pick a random label when votes are equal.

Member Typedef Documentation

template<typename TInputImage , typename TOutputImage >
typedef SmartPointer<const Self> itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::ConstPointer
template<typename TInputImage , typename TOutputImage >
typedef InputImageType::ConstPointer itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::InputImagePointer
template<typename TInputImage , typename TOutputImage >
typedef TInputImage itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::InputImageType

Image typedef support

template<typename TInputImage , typename TOutputImage >
typedef TInputImage::PixelType itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::InputPixelType
template<typename TInputImage , typename TOutputImage >
typedef OutputImageType::Pointer itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::OutputImagePointer
template<typename TInputImage , typename TOutputImage >
typedef Superclass::OutputImageRegionType itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::OutputImageRegionType

Superclass typedefs.

template<typename TInputImage , typename TOutputImage >
typedef TOutputImage itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::OutputImageType
template<typename TInputImage , typename TOutputImage >
typedef TOutputImage::PixelType itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::OutputPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

template<typename TInputImage , typename TOutputImage >
typedef SmartPointer<Self> itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::Pointer
template<typename TInputImage , typename TOutputImage >
typedef UCLLabelVotingImageFilter itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::Self

Standard class typedefs.

template<typename TInputImage , typename TOutputImage >
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::Superclass

Constructor & Destructor Documentation

template<typename TInputImage , typename TOutputImage >
itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::UCLLabelVotingImageFilter ( )
inlineprotected

Constructor.

template<typename TInputImage , typename TOutputImage >
virtual itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::~UCLLabelVotingImageFilter ( )
inlineprotectedvirtual

Destructor.

Member Function Documentation

template<typename TInputImage , typename TOutputImage >
virtual void itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData ( )
protectedvirtual

House-keeping before going into the threads.

template<typename TInputImage , typename TOutputImage >
virtual InputPixelType itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::ComputeMaximumInputValue ( )
protectedvirtual

Compute the max value in the input images.

template<typename TInputImage , typename TOutputImage >
virtual const char* itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::GetClassName ( ) const
virtual

Run-time type information (and related methods)

template<typename TInputImage , typename TOutputImage >
virtual OutputPixelType itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::GetLabelForUndecidedPixels ( ) const
inlinevirtual

Get label value used for undecided pixels. After updating the filter, this function returns the actual label value used for undecided pixels in the current output. Note that this value is overwritten when SetLabelForUndecidedPixels is called and the new value only becomes effective upon the next filter update.

template<typename TInputImage , typename TOutputImage >
itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro ( InputImageDimension  ,
unsigned  int,
TInputImage::ImageDimension   
)

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

template<typename TInputImage , typename TOutputImage >
itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro ( ImageDimension  ,
unsigned  int,
TOutputImage::ImageDimension   
)
template<typename TInputImage , typename TOutputImage >
static Pointer itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

template<typename TInputImage , typename TOutputImage >
virtual void itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::SetLabelForUndecidedPixels ( const OutputPixelType  l)
inlinevirtual

Set label value for undecided pixels.

template<typename TInputImage , typename TOutputImage >
virtual void itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
ThreadIdType  threadId 
)
protectedvirtual

Override to add randomness.

template<typename TInputImage , typename TOutputImage >
virtual void itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::UnsetLabelForUndecidedPixels ( )
inlinevirtual

Unset label value for undecided pixels and turn on automatic selection.

Member Data Documentation

template<typename TInputImage , typename TOutputImage >
bool itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::m_HasLabelForUndecidedPixels
protected

Used label for decided voxels?

template<typename TInputImage , typename TOutputImage >
OutputPixelType itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::m_LabelForUndecidedPixels
protected

Label for undecided voxels. Use 240 for random label.

template<typename TInputImage , typename TOutputImage >
InputPixelType itk::UCLLabelVotingImageFilter< TInputImage, TOutputImage >::m_TotalLabelCount
protected

Total number of labels.


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