Main Page
Groups
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File
List
Namespace Members
Compound Members
File Members
Concepts
itk::Statistics::Sample< TMeasurementVector > Class Template Reference
Sample defines common iterfaces for each subclasses.
More...
#include <itkSample.h>
Inheritance diagram for itk::Statistics::Sample< TMeasurementVector >:
[legend]Collaboration diagram for itk::Statistics::Sample< TMeasurementVector >:
[legend]List of all members.
Detailed Description
template<class TMeasurementVector>
class itk::Statistics::Sample< TMeasurementVector >
Sample defines common iterfaces for each subclasses.
A measurement vector is a vector of different types of values. For example, users might have an image with each pixel have a gray level intensity value and a gradient magnitude. In this example, user think each pixel as a measurement vector that has two types of values, intensity and gradient magnitude. In this sense, the meaning of "measurement" can be interchaneable with "measurement".
The primary purpose of Sample clases are storing such measurement vectors and providing different types of element access methods.
The "TMeasurement" template argument defines the type of each values in a measurement vector. The "VMeasurementVectorSize" template argument defines the number of elements in a measurement vector. The type of measurement vector is fixed as ITK Point. The resulting measurement vector type is Point< TMeasurement, VMeasurementVectorSize >.
There are two common ways of accessing data. First, users can use an "InstanceIdentifier", say 'id' which is sequential index of measurement vectors to access a measurement vector in a container. Second, users can access a measurement value using dimension and the index of a measurement value, say 'n' in that dimension. The 'id' and 'n' is equal in the ListSample classes. However, in Histogram class, its different. See Histogram. For algorithms using these indexes, there are methods to get the length of each dimension, GetSize() and GetSize(dimension). See each method's comment.
Users may need to know two other groups of methods to fully utilize Sample. One group of methods is about frequency of measurement vectors. In Histogram classes, you can use such methods to get/set the frequency of each measurement vector. The other group of methods is about characteristics of each subclasses of this class. If user want to create or know the characteristics of a subclass, use them. The set of characteristics tell that if the data is sorted (true for Histogram), if the each measurement vector is unique (true for Histogram), and if the container supports "meaningful" frequency interfaces. In ListSample classes, users cannot set frequency, and GetFrequency() methods return one if the element exists, else zero. So, currently ListSample's supporting frequency is set to false.
Definition at line 77 of file itkSample.h.
Member Typedef Documentation
|
Reimplemented from itk::Object.
Reimplemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToCooccurrenceListAdaptor< TImage >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::JointDomainImageToListAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::ScalarImageToListAdaptor< TImage >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, and itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >.
Definition at line 84 of file itkSample.h. |
|
frequency value typedef
Reimplemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToCooccurrenceListAdaptor< TImage >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::JointDomainImageToListAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSampleBase< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::ScalarImageToListAdaptor< TImage >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< TPointSet::PointType >, and itk::Statistics::ListSampleBase< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 96 of file itkSample.h. |
|
Instance Identifier typedef support this identifier will be unique sequential id for each measurement vector in a Sample subclass.
Reimplemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToCooccurrenceListAdaptor< TImage >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::JointDomainImageToListAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSampleBase< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::ScalarImageToListAdaptor< TImage >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< TPointSet::PointType >, and itk::Statistics::ListSampleBase< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 101 of file itkSample.h. |
|
typedef for each element in a measurement vector
Reimplemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToCooccurrenceListAdaptor< TImage >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::JointDomainImageToListAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSampleBase< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::ScalarImageToListAdaptor< TImage >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< TPointSet::PointType >, and itk::Statistics::ListSampleBase< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 93 of file itkSample.h. |
|
MeasurementVector typedef support
Reimplemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToCooccurrenceListAdaptor< TImage >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::JointDomainImageToListAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSampleBase< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::ScalarImageToListAdaptor< TImage >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< TPointSet::PointType >, and itk::Statistics::ListSampleBase< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 90 of file itkSample.h. |
|
Reimplemented from itk::Object.
Reimplemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToCooccurrenceListAdaptor< TImage >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::JointDomainImageToListAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::ScalarImageToListAdaptor< TImage >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, and itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >.
Definition at line 83 of file itkSample.h. |
|
Standard class typedefs
Reimplemented from itk::Object.
Reimplemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToCooccurrenceListAdaptor< TImage >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::JointDomainImageToListAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSampleBase< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::ScalarImageToListAdaptor< TImage >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< TPointSet::PointType >, and itk::Statistics::ListSampleBase< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 81 of file itkSample.h. |
|
Reimplemented from itk::Object.
Reimplemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToCooccurrenceListAdaptor< TImage >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::JointDomainImageToListAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSampleBase< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::ScalarImageToListAdaptor< TImage >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< TPointSet::PointType >, and itk::Statistics::ListSampleBase< ImageJointDomainTraits< TImage >::MeasurementVectorType >.
Definition at line 82 of file itkSample.h. |
Constructor & Destructor Documentation
Member Function Documentation
template<class TMeasurementVector> |
virtual const char* itk::Statistics::Sample< TMeasurementVector >::GetClassName |
( |
|
) |
const [virtual] |
|
|
Run-time type information (and related methods)
Reimplemented from itk::Object.
Reimplemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToCooccurrenceListAdaptor< TImage >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::JointDomainImageToListAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::ListSampleBase< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::ScalarImageToListAdaptor< TImage >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ListSampleBase< FixedArray< TImage::PixelType, 1 > >, itk::Statistics::ListSampleBase< TPointSet::PointType >, and itk::Statistics::ListSampleBase< ImageJointDomainTraits< TImage >::MeasurementVectorType >. |
|
returns the frequency of the instance which is identified by the 'id'
Implemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, and itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >. |
|
returns the measurement of the instance which is identified by the 'id'
Implemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::JointDomainImageToListAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::ScalarImageToListAdaptor< TImage >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, and itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >.
Referenced by itk::Statistics::ListSampleBase< ImageJointDomainTraits< TImage >::MeasurementVectorType >::Search(). |
|
returns the total frequency for the 'd' dimension
Implemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, and itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >. |
template<class TMeasurementVector> |
itk::Statistics::Sample< TMeasurementVector >::itkStaticConstMacro |
( |
MeasurementVectorSize |
, |
|
|
unsigned |
int, |
|
|
TMeasurementVector::Length |
|
|
) |
|
|
template<class TMeasurementVector> |
void itk::Statistics::Sample< TMeasurementVector >::PrintSelf |
( |
std::ostream & |
os, |
|
|
Indent |
indent |
|
) |
const [inline, 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.
Reimplemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToCooccurrenceListAdaptor< TImage >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::JointDomainImageToListAdaptor< TImage >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::ScalarImageToListAdaptor< TImage >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, and itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >.
Definition at line 122 of file itkSample.h. |
|
Implemented in itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >, itk::Statistics::ImageToListAdaptor< TImage, TMeasurementVector >, itk::Statistics::ListSample< TMeasurementVector >, itk::Statistics::MembershipSample< TSample >, itk::Statistics::PointSetToListAdaptor< TPointSet >, itk::Statistics::Subsample< TSample >, itk::Statistics::Histogram< THistogramMeasurement, 1 >, itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 2 > >, itk::Statistics::ImageToListAdaptor< TImage, ImageJointDomainTraits< TImage >::MeasurementVectorType >, and itk::Statistics::ImageToListAdaptor< TImage, FixedArray< TImage::PixelType, 1 > >.
Referenced by itk::Statistics::ListSampleBase< ImageJointDomainTraits< TImage >::MeasurementVectorType >::Search(). |
The documentation for this class was generated from the following file:
Generated at Wed Mar 30 01:39:44 2005 for ITK by
1.3.9.1 written by Dimitri van Heesch,
© 1997-2000