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

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

SelectiveSubsampleGenerator generates a Subsample object that includes measurement vectors that belong to the classes that are specified by the SetSelectedClassLabels method. More...

#include <itkSelectiveSubsampleGenerator.h>

Inheritance diagram for itk::Statistics::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >:

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

Collaboration graph
[legend]
List of all members.

[NOHEADER]

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

Public Types

typedef SelectiveSubsampleGenerator Self
typedef Object Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef TInputSample::MeasurementVectorType MeasurementVectorType
typedef TClassMaskSample::MeasurementType ClassLabelType
typedef std::vector< ClassLabelTypeClassLabelVectorType
typedef Subsample< TInputSample > OutputType
typedef OutputType::Pointer OutputPointer

Public Member Functions

void SetInput (TInputSample *sample)
TInputSample * GetInput ()
void SetClassMask (const TClassMaskSample *classMask)
const TClassMaskSample * GetClassMask () const
void SetSelectedClassLabels (const ClassLabelVectorType &classLabels)
const OutputTypeGetOutput () const
void GenerateData ()

Protected Member Functions

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

Detailed Description

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

SelectiveSubsampleGenerator generates a Subsample object that includes measurement vectors that belong to the classes that are specified by the SetSelectedClassLabels method.

To instantiate an object of this class you have to provide two template arguments: the type of the input sample and the type of class mask sample.

The input sample is a sample that has all the measurement vectors and the class mask sample contains class labels for their corresponding measurement vectors in the input sample. Therefore, the sizes of both should be the same.

To generate a subsample that a part of the input sample that belongs to a set of classes, you should call SetSelectedClassLabels method with the class labels that you want to include in the output.

See also:
Subsample

Definition at line 49 of file itkSelectiveSubsampleGenerator.h.


Member Typedef Documentation

template<class TInputSample, class TClassMaskSample>
typedef TClassMaskSample::MeasurementType itk::Statistics::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >::ClassLabelType
 

Definition at line 67 of file itkSelectiveSubsampleGenerator.h.

template<class TInputSample, class TClassMaskSample>
typedef std::vector< ClassLabelType > itk::Statistics::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >::ClassLabelVectorType
 

Definition at line 68 of file itkSelectiveSubsampleGenerator.h.

Referenced by itk::Statistics::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >::~SelectiveSubsampleGenerator().

template<class TInputSample, class TClassMaskSample>
typedef SmartPointer<const Self> itk::Statistics::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >::ConstPointer
 

Reimplemented from itk::Object.

Definition at line 57 of file itkSelectiveSubsampleGenerator.h.

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

Input sample types alias Definition at line 65 of file itkSelectiveSubsampleGenerator.h.

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

Definition at line 72 of file itkSelectiveSubsampleGenerator.h.

Referenced by itk::Statistics::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >::~SelectiveSubsampleGenerator().

template<class TInputSample, class TClassMaskSample>
typedef Subsample< TInputSample > itk::Statistics::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >::OutputType
 

Output: MembershipSample types Definition at line 71 of file itkSelectiveSubsampleGenerator.h.

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

Reimplemented from itk::Object.

Definition at line 56 of file itkSelectiveSubsampleGenerator.h.

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

Standard class typedefs.

Reimplemented from itk::Object.

Definition at line 54 of file itkSelectiveSubsampleGenerator.h.

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

Reimplemented from itk::Object.

Definition at line 55 of file itkSelectiveSubsampleGenerator.h.


Constructor & Destructor Documentation

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

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

Definition at line 98 of file itkSelectiveSubsampleGenerator.h.

References itk::Statistics::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >::ClassLabelVectorType, and itk::Statistics::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >::OutputPointer.


Member Function Documentation

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

The actual output generation procedure.

template<class TInputSample, class TClassMaskSample>
const TClassMaskSample* itk::Statistics::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >::GetClassMask  )  const
 

Returns the class mask sample pointer

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

Standard Macros

Reimplemented from itk::Object.

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

Returns the input sample pointer

template<class TInputSample, class TClassMaskSample>
const OutputType* itk::Statistics::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >::GetOutput  )  const
 

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

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

Standard Macros

Reimplemented from itk::Object.

template<class TInputSample, class TClassMaskSample>
void itk::Statistics::SelectiveSubsampleGenerator< 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::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >::SetClassMask const TClassMaskSample *  classMask  ) 
 

Stores the class mask sample

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

Stores the input sample

template<class TInputSample, class TClassMaskSample>
void itk::Statistics::SelectiveSubsampleGenerator< TInputSample, TClassMaskSample >::SetSelectedClassLabels const ClassLabelVectorType classLabels  )  [inline]
 

Definition at line 86 of file itkSelectiveSubsampleGenerator.h.


The documentation for this class was generated from the following file:
Generated at Sun Apr 1 03:24:46 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000