ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Protected Member Functions | Private Attributes
itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage > Class Template Reference

#include <itkImageClassifierFilter.h>

+ Inheritance diagram for itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >:
+ Collaboration diagram for itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >:

List of all members.

Public Types

typedef IdentifierType ClassLabelType
typedef
ClassLabelVectorObjectType::Pointer 
ClassLabelVectorObjectPointer
typedef
SimpleDataObjectDecorator
< ClassLabelVectorType
ClassLabelVectorObjectType
typedef std::vector
< ClassLabelType
ClassLabelVectorType
typedef SmartPointer< const SelfConstPointer
typedef
DecisionRuleType::ConstPointer 
DecisionRulePointer
typedef DecisionRule DecisionRuleType
typedef TInputImage::Pointer InputImagePointer
typedef TInputImage::RegionType InputImageRegionType
typedef TInputImage InputImageType
typedef TInputImage::IndexType InputIndexType
typedef TInputImage::PixelType InputPixelType
typedef TInputImage::SizeType InputSizeType
typedef SampleType::MeasurementType MeasurementType
typedef
SampleType::MeasurementVectorType 
MeasurementVectorType
typedef
MembershipFunctionType::ConstPointer 
MembershipFunctionPointer
typedef
SimpleDataObjectDecorator
< MembershipFunctionsWeightsArrayType
MembershipFunctionsWeightsArrayObjectType
typedef
MembershipFunctionsWeightsArrayObjectType::Pointer 
MembershipFunctionsWeightsArrayPointer
typedef Array< double > MembershipFunctionsWeightsArrayType
typedef MembershipFunctionBase
< MeasurementVectorType
MembershipFunctionType
typedef
MembershipFunctionVectorObjectType::Pointer 
MembershipFunctionVectorObjectPointer
typedef
SimpleDataObjectDecorator
< MembershipFunctionVectorType
MembershipFunctionVectorObjectType
typedef std::vector
< MembershipFunctionPointer
MembershipFunctionVectorType
typedef TOutputImage::Pointer OutputImagePointer
typedef TOutputImage::RegionType OutputImageRegionType
typedef TOutputImage OutputImageType
typedef TOutputImage::IndexType OutputIndexType
typedef TOutputImage::PixelType OutputPixelType
typedef TOutputImage::SizeType OutputSizeType
typedef SmartPointer< SelfPointer
typedef TSample SampleType
typedef ImageClassifierFilter Self
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass

Public Member Functions

const InputImageTypeGetImage () const
void SetClassLabels (const ClassLabelVectorObjectType *classLabels)
void SetImage (const InputImageType *image)
void SetMembershipFunctions (const MembershipFunctionVectorObjectType *membershipFunctions)
void SetMembershipFunctionsWeightsArray (const MembershipFunctionsWeightsArrayObjectType *weightsArray)
virtual void SetNumberOfClasses (unsigned int _arg)
virtual unsigned int GetNumberOfClasses () const
virtual void SetDecisionRule (const DecisionRuleType *_arg)
virtual const DecisionRuleTypeGetDecisionRule ()

Static Public Attributes

static const unsigned int InputImageDimension = TInputImage::ImageDimension
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension

Protected Member Functions

void GenerateData ()
 ImageClassifierFilter ()
 ImageClassifierFilter (const Self &)
void operator= (const Self &)
void PrintSelf (std::ostream &os, Indent indent) const
virtual ~ImageClassifierFilter ()

Private Attributes

DecisionRulePointer m_DecisionRule
unsigned int m_NumberOfClasses
virtual const char * GetNameOfClass () const
virtual ::itk::LightObject::Pointer CreateAnother (void) const
static Pointer New ()

Detailed Description

template<class TSample, class TInputImage, class TOutputImage>
class itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >

Image classification class.

This filter takes input image, membership functions, decision rule and produces as output image with each pixel labeled according to the classification result.

This class is templated over the type of input and output image and sample type.

See also:
SampleClassifierFilter

Definition at line 48 of file itkImageClassifierFilter.h.


Member Typedef Documentation

template<class TSample , class TInputImage , class TOutputImage >
typedef IdentifierType itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::ClassLabelType

typedef for class label type

Definition at line 112 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef ClassLabelVectorObjectType::Pointer itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::ClassLabelVectorObjectPointer

Definition at line 116 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef SimpleDataObjectDecorator< ClassLabelVectorType > itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::ClassLabelVectorObjectType

Definition at line 115 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef std::vector< ClassLabelType > itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::ClassLabelVectorType

Definition at line 113 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef SmartPointer< const Self > itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::ConstPointer
template<class TSample , class TInputImage , class TOutputImage >
typedef DecisionRuleType::ConstPointer itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::DecisionRulePointer

Definition at line 120 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef DecisionRule itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::DecisionRuleType

type of the decision rule

Definition at line 119 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef TInputImage::Pointer itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::InputImagePointer

Image related typedefs.

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

Definition at line 70 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef TInputImage::RegionType itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::InputImageRegionType
template<class TSample , class TInputImage , class TOutputImage >
typedef TInputImage itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::InputImageType

Image pixel value typedef.

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

Definition at line 60 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef TInputImage::IndexType itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::InputIndexType

Definition at line 74 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef TInputImage::PixelType itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::InputPixelType

Definition at line 66 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef TInputImage::SizeType itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::InputSizeType

Definition at line 73 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef SampleType::MeasurementType itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::MeasurementType

typedefs from SampleType object

Definition at line 91 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef SampleType::MeasurementVectorType itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::MeasurementVectorType

Definition at line 92 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef MembershipFunctionType::ConstPointer itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::MembershipFunctionPointer

Definition at line 96 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef SimpleDataObjectDecorator< MembershipFunctionsWeightsArrayType > itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::MembershipFunctionsWeightsArrayObjectType

Definition at line 107 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef MembershipFunctionsWeightsArrayObjectType::Pointer itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::MembershipFunctionsWeightsArrayPointer

Definition at line 109 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef Array< double > itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::MembershipFunctionsWeightsArrayType

typedef for membership functions weight proprtion

Definition at line 104 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef MembershipFunctionBase< MeasurementVectorType > itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::MembershipFunctionType

typedef for the MembershipFunction

Definition at line 95 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef MembershipFunctionVectorObjectType::Pointer itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::MembershipFunctionVectorObjectPointer

Definition at line 101 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef SimpleDataObjectDecorator< MembershipFunctionVectorType > itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::MembershipFunctionVectorObjectType

Definition at line 99 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef std::vector< MembershipFunctionPointer > itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::MembershipFunctionVectorType

Definition at line 97 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef TOutputImage::Pointer itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::OutputImagePointer

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 71 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef TOutputImage::RegionType itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::OutputImageRegionType

Superclass typedefs.

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

Definition at line 78 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef TOutputImage itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::OutputImageType

Some convenient typedefs.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 65 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef TOutputImage::IndexType itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::OutputIndexType

Definition at line 77 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef TOutputImage::PixelType itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::OutputPixelType

Definition at line 67 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef TOutputImage::SizeType itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::OutputSizeType

Definition at line 76 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef SmartPointer< Self > itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::Pointer
template<class TSample , class TInputImage , class TOutputImage >
typedef TSample itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::SampleType

Type of the input Sample

Definition at line 88 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef ImageClassifierFilter itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::Self

Standard class typedef

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

Definition at line 53 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::Superclass

Constructor & Destructor Documentation

template<class TSample , class TInputImage , class TOutputImage >
itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::ImageClassifierFilter ( ) [protected]
template<class TSample , class TInputImage , class TOutputImage >
virtual itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::~ImageClassifierFilter ( ) [inline, protected, virtual]

Definition at line 154 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::ImageClassifierFilter ( const Self ) [protected]

Member Function Documentation

template<class TSample , class TInputImage , class TOutputImage >
virtual::itk::LightObject::Pointer itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::CreateAnother ( void  ) const [virtual]

Standard macros

Reimplemented from itk::Object.

template<class TSample , class TInputImage , class TOutputImage >
void itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::GenerateData ( ) [protected, virtual]

Starts the classification process

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TSample , class TInputImage , class TOutputImage >
virtual const DecisionRuleType* itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::GetDecisionRule ( ) [virtual]

Set/Get the decision rule.

template<class TSample , class TInputImage , class TOutputImage >
const InputImageType* itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::GetImage ( ) const
template<class TSample , class TInputImage , class TOutputImage >
virtual const char* itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::GetNameOfClass ( ) const [virtual]

Standard macros

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

template<class TSample , class TInputImage , class TOutputImage >
virtual unsigned int itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::GetNumberOfClasses ( ) const [virtual]

Number of classes. This must match the number of labels and membership functions provided by the user, otherwise an exception will be thrown at

template<class TSample , class TInputImage , class TOutputImage >
static Pointer itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::New ( ) [static]

Standard macros

Reimplemented from itk::Object.

template<class TSample , class TInputImage , class TOutputImage >
void itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::operator= ( const Self ) [protected]

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 TSample , class TInputImage , class TOutputImage >
void itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::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::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TSample , class TInputImage , class TOutputImage >
void itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::SetClassLabels ( const ClassLabelVectorObjectType classLabels)

Sets input vector of class labels. The length of this vector must match the number of classes, otherwise an exception will be thrown at run time.

template<class TSample , class TInputImage , class TOutputImage >
virtual void itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::SetDecisionRule ( const DecisionRuleType _arg) [virtual]

Set/Get the decision rule.

template<class TSample , class TInputImage , class TOutputImage >
void itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::SetImage ( const InputImageType image)

Sets the input image

template<class TSample , class TInputImage , class TOutputImage >
void itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::SetMembershipFunctions ( const MembershipFunctionVectorObjectType membershipFunctions)

Sets input vector of membership functions. The length of this vector must match the number of classes, otherwise an exception will be thrown at run time.

template<class TSample , class TInputImage , class TOutputImage >
void itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::SetMembershipFunctionsWeightsArray ( const MembershipFunctionsWeightsArrayObjectType weightsArray)

Sets array of weights for the membership functions

template<class TSample , class TInputImage , class TOutputImage >
virtual void itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::SetNumberOfClasses ( unsigned int  _arg) [virtual]

Number of classes. This must match the number of labels and membership functions provided by the user, otherwise an exception will be thrown at


Member Data Documentation

template<class TSample , class TInputImage , class TOutputImage >
const unsigned int itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::InputImageDimension = TInputImage::ImageDimension [static]

Image related typedefs.

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

Definition at line 82 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
DecisionRulePointer itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::m_DecisionRule [private]

Decision Rule

Definition at line 168 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
unsigned int itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::m_NumberOfClasses [private]

Definition at line 165 of file itkImageClassifierFilter.h.

template<class TSample , class TInputImage , class TOutputImage >
const unsigned int itk::Statistics::ImageClassifierFilter< TSample, TInputImage, TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension [static]

Image related typedefs.

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

Definition at line 84 of file itkImageClassifierFilter.h.


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