#include <itkHistogram.h>
Inheritance diagram for itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >:
Public Types | |
typedef Histogram | Self |
typedef Sample< FixedArray< TMeasurement, VMeasurementVectorSize > > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TMeasurement | MeasurementType |
typedef Superclass::MeasurementVectorType | MeasurementVectorType |
typedef Superclass::InstanceIdentifier | InstanceIdentifier |
typedef MeasurementVectorType | ValueType |
typedef TFrequencyContainer | FrequencyContainerType |
typedef FrequencyContainerType::Pointer | FrequencyContainerPointer |
typedef FrequencyContainerType::FrequencyType | FrequencyType |
typedef itk::Index< VMeasurementVectorSize > | IndexType |
typedef IndexType::IndexValueType | IndexValueType |
typedef itk::Size< VMeasurementVectorSize > | SizeType |
typedef SizeType::SizeValueType | SizeValueType |
typedef std::vector< MeasurementType > | BinMinVectorType |
typedef std::vector< MeasurementType > | BinMaxVectorType |
typedef std::vector< BinMinVectorType > | BinMinContainerType |
typedef std::vector< BinMaxVectorType > | BinMaxContainerType |
Public Member Functions | |
virtual const char * | GetClassName () const |
itkStaticConstMacro (MeasurementVectorSize, unsigned int, VMeasurementVectorSize) | |
void | Initialize (const SizeType &size) |
void | Initialize (const SizeType &size, MeasurementVectorType &lowerBound, MeasurementVectorType &upperBound) |
const IndexType & | GetIndex (const MeasurementVectorType &measurement) const |
const IndexType & | GetIndex (const InstanceIdentifier &id) const |
bool | IsIndexOutOfBounds (const IndexType &index) const |
InstanceIdentifier | GetInstanceIdentifier (const IndexType &index) const |
unsigned int | Size () const |
SizeType | GetSize () const |
SizeValueType | GetSize (const unsigned int dimension) const |
MeasurementType & | GetBinMin (const unsigned int dimension, const unsigned long nbin) |
MeasurementType & | GetBinMax (const unsigned int dimension, const unsigned long nbin) |
void | SetBinMin (const unsigned int dimension, const unsigned long nbin, const MeasurementType min) |
void | SetBinMax (const unsigned int dimension, unsigned long nbin, const MeasurementType max) |
MeasurementType & | GetBinMinFromValue (const unsigned int dimension, const float value) const |
MeasurementType & | GetBinMaxFromValue (const unsigned int dimension, const float value) const |
BinMinVectorType & | GetDimensionMins (const unsigned int dimension) const |
BinMaxVectorType & | GetDimensionMaxs (const unsigned int dimension) const |
BinMinContainerType & | GetMins () const |
BinMaxContainerType & | GetMaxs () const |
MeasurementVectorType & | GetHistogramMinFromValue (const MeasurementVectorType &measurement) |
MeasurementVectorType & | GetHistogramMaxFromValue (const MeasurementVectorType &measurement) |
MeasurementVectorType & | GetHistogramMinFromIndex (const IndexType &index) |
MeasurementVectorType & | GetHistogramMaxFromIndex (const IndexType &index) |
FrequencyType | GetFrequency (const InstanceIdentifier &id) const |
FrequencyType | GetFrequency (const IndexType &index) const |
void | SetFrequency (const FrequencyType value) |
void | SetFrequency (const InstanceIdentifier &id, const FrequencyType value) |
void | SetFrequency (const IndexType &index, const FrequencyType value) |
void | SetFrequency (const MeasurementVectorType &measurement, const FrequencyType value) |
void | IncreaseFrequency (const InstanceIdentifier &id, const FrequencyType value) |
void | IncreaseFrequency (const IndexType &index, const FrequencyType value) |
void | IncreaseFrequency (const MeasurementVectorType &measurement, const FrequencyType value) |
const MeasurementVectorType & | GetMeasurementVector (const InstanceIdentifier &id) const |
const MeasurementVectorType & | GetMeasurementVector (const IndexType &index) const |
MeasurementType | GetMeasurement (const unsigned long n, const unsigned int dimension) const |
FrequencyType | GetTotalFrequency () const |
FrequencyType | GetFrequency (const unsigned long n, const unsigned int dimension) const |
Iterator | Begin () |
Iterator | End () |
ConstIterator | Begin () const |
ConstIterator | End () const |
double | Quantile (const unsigned int dimension, const double &p) |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
Histogram () | |
virtual | ~Histogram () |
void | PrintSelf (std::ostream &os, Indent indent) const |
Protected Attributes | |
SizeType | m_Size |
std::vector< std::vector< MeasurementType > > | m_Min |
std::vector< std::vector< MeasurementType > > | m_Max |
Users can set arbitrary value for each bins min max value for each dimension (variable interval). Each dimension of the histogram represents each dimension of measurement vectors. For example, an Image with each pixel having a gray level intensity value and a gradient magnitude can be imported to this class. Then the resulting Histogram has two dimensions, intensity and gradient magnitude.
Before any operation, users have to call Initialize(SizeType) method to prepare the indexing mechanism and the internal frequency container. After this, users want to set range of each bin using SetBinMin(dimension, n) and SetBinMax(dimension, n) methods.
The first two template arguments are same as those of Sample. The last one, "TFrequencyContainter", is the type of the internal frequency container. If you think your Histogram is dense, in other words, almost every bin is used, then use default. If you expect that a very little portion of bins will be used, replace it with SparseFrequencyContainer class
Since this class is n-dimensional, it supports data access methods using ITK Index type in addition to the methods using "InstanceIdentifiers".
Definition at line 65 of file itkHistogram.h.
|
Definition at line 112 of file itkHistogram.h. |
|
Definition at line 110 of file itkHistogram.h. |
|
Definition at line 111 of file itkHistogram.h. |
|
bin min max value storage types Definition at line 109 of file itkHistogram.h. |
|
Reimplemented from itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >. Definition at line 73 of file itkHistogram.h. |
|
Definition at line 95 of file itkHistogram.h. |
|
frequency container typedef Definition at line 94 of file itkHistogram.h. |
|
Frequency value type from superclass Reimplemented from itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >. Definition at line 98 of file itkHistogram.h. |
|
Index typedef support. An index is used to access pixel values. Definition at line 101 of file itkHistogram.h. |
|
Definition at line 102 of file itkHistogram.h. |
|
Instance Identifier typedef support this identifier will be unique sequential id for each measurement vector in a Sample subclass. Reimplemented from itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >. Definition at line 90 of file itkHistogram.h. |
|
type of an element of a measurement vector Reimplemented from itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >. Definition at line 86 of file itkHistogram.h. |
|
Common sample class typedefs Reimplemented from itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >. Definition at line 89 of file itkHistogram.h. |
|
Reimplemented from itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >. Definition at line 72 of file itkHistogram.h. |
|
Standard typedefs Reimplemented from itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >. Definition at line 70 of file itkHistogram.h. Referenced by itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >::ConstIterator::ConstIterator(), and itk::Statistics::Histogram< TMeasurement, VMeasurementVectorSize, TFrequencyContainer >::Iterator::Iterator(). |
|
size array type Definition at line 105 of file itkHistogram.h. |
|
Definition at line 106 of file itkHistogram.h. |
|
Reimplemented from itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >. Definition at line 71 of file itkHistogram.h. |
|
Definition at line 91 of file itkHistogram.h. |
|
|
|
Definition at line 452 of file itkHistogram.h. |
|
Definition at line 438 of file itkHistogram.h. |
|
Definition at line 427 of file itkHistogram.h. |
|
Definition at line 444 of file itkHistogram.h. |
|
Definition at line 433 of file itkHistogram.h. |
|
Method to get maximum value of n th bin of dimension d Definition at line 165 of file itkHistogram.h. |
|
Method to get the maximum of the bin corresponding to the gray level of dimension d. |
|
Method to get minimum value of n th bin of dimension d Definition at line 160 of file itkHistogram.h. |
|
Method to get the minimum of the bin corresponding to the gray level of dimension d. |
|
Run-time type information (and related methods). Reimplemented from itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >.
|
|
Method to get the maximum vector of a dimension Definition at line 194 of file itkHistogram.h. |
|
Method to get the minimum vector of a dimension Definition at line 190 of file itkHistogram.h. |
|
returns the frequency of the'dimension' dimension's 'n'th element. |
|
returns frequency of a bin that is indexed by index |
|
Method to get the frequency from histogram Implements itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >. Definition at line 220 of file itkHistogram.h. |
|
Method to get maxs in the histogram by index |
|
Method to get maxs of each dimension for a measurement in the histogram |
|
Method to get mins in the histogram by index |
|
Method to get mins of each dimension for a measurement in the histogram |
|
returns the index that is uniquely labelled by an instance identifier The corresponding id is the offset of the index This method uses ImageBase::ComputeIndex() method |
|
returns the index of histogram corresponding to measurement value |
|
returns the instance identifier of the cell that is indexed by the index. The corresponding instance identifier is the offset of the index This method uses ImageBase::ComputeIndex() method |
|
Method to get the maximum vector Definition at line 202 of file itkHistogram.h. |
|
Method to get measurement from the histogram |
|
Method to get measurement from the histogram |
|
Method to get measurement from the histogram using an instance identifier Implements itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >.
|
|
Method to get the minimum vector Definition at line 198 of file itkHistogram.h. |
|
return the size of each dimension of the measurement vector container Definition at line 154 of file itkHistogram.h. |
|
Method to get m_Size Definition at line 150 of file itkHistogram.h. |
|
returns the total frequency Implements itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >.
|
|
Method to increase the frequency by one. This function is convinent to create histogram. |
|
Method to increase the frequency by one. This function is convinent to create histogram. |
|
Method to increase the frequency by one. This function is convinent to create histogram. Definition at line 244 of file itkHistogram.h. |
|
Do the same thing as the above Initialize(SizeType) method do , and also creates equal size bins within the range given by lower and upper bound. If users want to assign bin's min and max values along each dimension use SetBinMin() and SetBinMax() functions |
|
generates the offset table. subclasses should call this method in their initialize() method the overide methods have prepare the frequency container for input and output. |
|
returns true if the given index is out of bound meaning one of index is not between [0, last index] |
|
Dimension of a measurement vector |
|
standard New() method support Reimplemented from itk::Object.
|
|
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::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >.
|
|
returns 'p'th percentile value. Let assume n = the index of the bin where the p-th percentile value is, min = min value of the dimension of the bin, max = max value of the dimension of the bin, interval = max - min , pp = cumlated proportion until n-1 bin ; and pb = frequency of the bin / total frequency of the dimension. If p is less than 0.5, the percentile value = min + ((p - pp ) / pb) * interval If p is greater than or equal to 0.5 the percentile value = max - ((pp - p) / pb) * interval |
|
Method to set maximum value of n th bin of dimension d Definition at line 175 of file itkHistogram.h. |
|
Method to set minimum value of n th bin of dimension d Definition at line 170 of file itkHistogram.h. |
|
Method to set the frequency corresponding to gray levels measurement |
|
Method to set the frequency of histogram |
|
Method to set the frequency of histogram Definition at line 230 of file itkHistogram.h. |
|
Method to set the frequency of histogram |
|
Returns the number of instances (bins or cells) in this container Implements itk::Statistics::Sample< FixedArray< TMeasurement, VMeasurementVectorSize > >.
|
|
Definition at line 462 of file itkHistogram.h. |
|
Definition at line 459 of file itkHistogram.h. |
|
Definition at line 456 of file itkHistogram.h. |