#include <Histogram.h>
This class is part of the DataStructure namespace which is actually a subnamespace of the main namespace Volume. Furthermore the standard class Object is inherted to the Histogram class for better controlling of a particular quantity of Histogram instances.
An instance of this class contains a single histogram which will be included in every volume object. It gives information about the count of grayvalues per density value. Thus, it is possible to represent the density distribution in the TransferFuncWin class and a visual interpretation could be drwan for better user understanding of the specific volume data object.
DataObject - the volume data object class.
Public Member Functions | |
Histogram (void) | |
This is the standard constructor. | |
Histogram (int numOfGrayvalues) | |
Constructor initialization with the maximum number of valid gray (density) values. | |
Histogram (int n_DensityFrequency __gc[], int n_Length) | |
Constructor initialization by an user-defined histogram. | |
~Histogram (void) | |
This is the standard deconstructor. | |
void | addNewValue (unsigned short n_Density) |
Increments the count of the specific density value. | |
void | addNewValue (unsigned short n_Density, int n_Value) |
Sets the choosen value to the specific density value. | |
Histogram * | getDownSampledHistogramValues (int n_SampleFactor) |
Returns a new downsampled histogam by the chossen sample factor. | |
int | getHistogramValue (unsigned short n_Density) |
Returns the current density count of the specified density value. | |
__property int | get_HistogramValues (void) __gc[] |
Returns the current density histogram. | |
__property int | get_HistogramLength (void) |
Returns the current density histogram length. | |
__property int | get_MaxVoxelCount (void) |
Returns the maximum voxel count of the current histogram. | |
Private Attributes | |
int | m_Length |
Saves the current histogram length. | |
int | m_MaxValue |
Saves the maximum voxel count of the histogram. | |
int m_DensityFrequency | __gc [] |
Represents the actual histogram values. |
|
This is the standard constructor. All member variables of this new instance will be set to zero/null. |
|
Constructor initialization with the maximum number of valid gray (density) values. All member variables will be set to zero, the Histogram::m_DensityFrequency member will be initialized with the given maximum number of gray values.
|
|
Constructor initialization by an user-defined histogram. The new instance will be set to the corresponding user-defined histogram values.
|
|
This is the standard deconstructor. Espacially the Histogram::m_DensityFrequency member which actual is an array will be deleted. |
|
Sets the choosen value to the specific density value. The current histogram will not be changed besides the particularly choosen density value.
|
|
Increments the count of the specific density value. The current histogram will not be changed besides the particularly choosen density value.
|
|
Returns the current density histogram length.
|
|
Returns the current density histogram.
|
|
Returns the maximum voxel count of the current histogram.
|
|
Returns a new downsampled histogam by the chossen sample factor.
|
|
Returns the current density count of the specified density value.
|