Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample > Class Template Reference

MembershipSampleGenerator generates a MembershipSample object using a class mask sample. More...

#include <itkMembershipSampleGenerator.h>

Inheritance diagram for itk::Statistics::MembershipSampleGenerator:

Inheritance graph
[legend]
Collaboration diagram for itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >:

Collaboration graph
[legend]
List of all members.

[NOHEADER]

virtual const char * GetClassName () const
Pointer New ()

Public Types

typedef MembershipSampleGenerator Self
typedef Object Superclass
typedef SmartPointer< SelfPointer
typedef TInputSample::MeasurementVectorType MeasurementVectorType
typedef MembershipSample<
TInputSample > 
OutputType
typedef OutputType::Pointer OutputPointer

Public Methods

void SetInput (TInputSample *sample)
TInputSample * GetInput ()
void SetClassMask (TClassMaskSample *classMask)
TClassMaskSample * GetClassMask ()
void SetNumberOfClasses (int numberOfClasses)
int GetNumberOfClasses ()
OutputTypeGetOutput ()
void GenerateData ()

Protected Methods

 MembershipSampleGenerator ()
virtual ~MembershipSampleGenerator ()
void PrintSelf (std::ostream &os, Indent indent) const

Detailed Description

template<class TInputSample, class TClassMaskSample>
class itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >

MembershipSampleGenerator generates a MembershipSample object using a class mask sample.

You can see it as a filter that takes two samples as input and generates a MembershipSample. There are two class template arguments first one is the type of basic sample that has measurement vectors in it, and the second one is the type of sample that its measurement vectors has only one component - class label. What it does is that it merges measurement vectors and class labels in a single MembershipSample object.

To get the MembershipSample object you should plug in the input sample and the class mask sample using SetInput and SetClassMask methods respectively.

NOTE: This generator expects the class labels in the class mask sample to be integer value where the value starts 0 and increases without any missing value between 0 to the last class label value.

See also:
MembershipSample

Definition at line 51 of file itkMembershipSampleGenerator.h.


Member Typedef Documentation

template<class TInputSample, class TClassMaskSample>
typedef TInputSample::MeasurementVectorType itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::MeasurementVectorType
 

Input sample types alias

Definition at line 66 of file itkMembershipSampleGenerator.h.

template<class TInputSample, class TClassMaskSample>
typedef OutputType::Pointer itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::OutputPointer
 

Definition at line 70 of file itkMembershipSampleGenerator.h.

template<class TInputSample, class TClassMaskSample>
typedef MembershipSample< TInputSample > itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::OutputType
 

Output: MembershipSample types

Definition at line 69 of file itkMembershipSampleGenerator.h.

template<class TInputSample, class TClassMaskSample>
typedef SmartPointer<Self> itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::Pointer
 

Reimplemented from itk::Object.

Definition at line 58 of file itkMembershipSampleGenerator.h.

template<class TInputSample, class TClassMaskSample>
typedef MembershipSampleGenerator itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::Self
 

Standard class typedefs.

Reimplemented from itk::Object.

Definition at line 56 of file itkMembershipSampleGenerator.h.

template<class TInputSample, class TClassMaskSample>
typedef Object itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::Superclass
 

Reimplemented from itk::Object.

Definition at line 57 of file itkMembershipSampleGenerator.h.


Constructor & Destructor Documentation

template<class TInputSample, class TClassMaskSample>
itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::MembershipSampleGenerator   [protected]
 

template<class TInputSample, class TClassMaskSample>
virtual itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::~MembershipSampleGenerator   [inline, protected, virtual]
 

Definition at line 97 of file itkMembershipSampleGenerator.h.

References HardConnectedComponentImageFilter::PrintSelf().


Member Function Documentation

template<class TInputSample, class TClassMaskSample>
void itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::GenerateData  
 

The actual output generation procedure.

template<class TInputSample, class TClassMaskSample>
TClassMaskSample* itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::GetClassMask  
 

Returns the class mask sample pointer

template<class TInputSample, class TClassMaskSample>
virtual const char* itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::GetClassName   const [virtual]
 

Standard Macros

Reimplemented from itk::Object.

template<class TInputSample, class TClassMaskSample>
TInputSample* itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::GetInput  
 

Returns the input sample pointer

template<class TInputSample, class TClassMaskSample>
int itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::GetNumberOfClasses  
 

template<class TInputSample, class TClassMaskSample>
OutputType* itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::GetOutput  
 

Returns the pointer to the MembershipSample object that has been generated by this

template<class TInputSample, class TClassMaskSample>
Pointer itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::New   [static]
 

Standard Macros

Reimplemented from itk::Object.

template<class TInputSample, class TClassMaskSample>
void itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::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::Object.

template<class TInputSample, class TClassMaskSample>
void itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::SetClassMask TClassMaskSample *    classMask
 

Stores the class mask sample

template<class TInputSample, class TClassMaskSample>
void itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::SetInput TInputSample *    sample
 

Stores the input sample

template<class TInputSample, class TClassMaskSample>
void itk::Statistics::MembershipSampleGenerator< TInputSample, TClassMaskSample >::SetNumberOfClasses int    numberOfClasses
 


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:53:39 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000