|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef ImageLutModel_H
27 #define ImageLutModel_H
29 #include <vtkImageData.h>
30 #include <vtkSmartPointer.h>
97 vtkSmartPointer<vtkImageData>
image;
116 #endif // ImageLutModel_H
double maxValue
Min the possible data value (given by the data type of the image)
Definition: ImageLutModel.h:126
double getMaxBinValue()
get the highgest grey level value
Definition: ImageLutModel.cpp:101
~ImageLutModel()
destructor
Definition: ImageLutModel.cpp:48
double getWindowFromPercent(int)
get window value from a percentage
Definition: ImageLutModel.cpp:174
double getLevelFromPercent(int)
get level value from a percentage
Definition: ImageLutModel.cpp:169
int getPercentFromWindow(double)
get window value as a percentage between 0 and 100
Definition: ImageLutModel.cpp:164
unsigned int nbHistoBins
size of greyLevels
Definition: ImageLutModel.h:135
int getPercentFromLevel(double)
get level value as a percentage between 0 and 100
Definition: ImageLutModel.cpp:159
double getMinValue()
get the minimal voxel value (lutMin)
Definition: ImageLutModel.cpp:141
void updateHistogram()
update the histogram depending on the number of bins
Definition: ImageLutModel.cpp:54
double minValue
Min the possible data value (given by the data type of the image)
Definition: ImageLutModel.h:123
double getBinIndexAsDouble(double value, bool checkBound=true)
image value to the histogram value (required to show the current level/window values on the graph)
Definition: ImageLutModel.cpp:121
ImageLutModel(vtkSmartPointer< vtkImageData >)
Constructor: set the image data.
Definition: ImageLutModel.cpp:32
vtkSmartPointer< vtkImageData > image
currently modeled image
Definition: ImageLutModel.h:120
double getBinValue(int)
get the number of voxels that end up in a given bin index
Definition: ImageLutModel.cpp:91
void setNumberOfBins(int)
change the number of bins
Definition: ImageLutModel.cpp:151
int getBinIndex(double)
image value to the histogram bin index (get the bin index of a given value)
Definition: ImageLutModel.cpp:107
The class ImageLutModel model the histogram of a given vtkImageData.
Definition: ImageLutModel.h:46
double getMaxValue()
get the maximal voxel value (lutMax)
Definition: ImageLutModel.cpp:136
double highestGreyLevel
highest number of grey level (highest value in greyLevels array)
Definition: ImageLutModel.h:132
int getNumberOfBins()
get the current number of bins
Definition: ImageLutModel.cpp:146
double * greyLevels
Table containing histogram bins.
Definition: ImageLutModel.h:129