26 #ifndef ImageLutModel_H
27 #define ImageLutModel_H
29 #include <vtkImageData.h>
30 #include <vtkSmartPointer.h>
97 vtkSmartPointer<vtkImageData>
image;
The class ImageLutModel model the histogram of a given vtkImageData.
Definition: ImageLutModel.h:46
void updateHistogram()
update the histogram depending on the number of bins
Definition: ImageLutModel.cpp:54
int getBinIndex(double)
image value to the histogram bin index (get the bin index of a given value)
Definition: ImageLutModel.cpp:107
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
int getPercentFromWindow(double)
get window value as a percentage between 0 and 100
Definition: ImageLutModel.cpp:164
double getWindowFromPercent(int)
get window value from a percentage
Definition: ImageLutModel.cpp:174
int getNumberOfBins()
get the current number of bins
Definition: ImageLutModel.cpp:146
double getMaxBinValue()
get the highgest grey level value
Definition: ImageLutModel.cpp:101
double maxValue
Min the possible data value (given by the data type of the image)
Definition: ImageLutModel.h:103
int getPercentFromLevel(double)
get level value as a percentage between 0 and 100
Definition: ImageLutModel.cpp:159
void setNumberOfBins(int)
change the number of bins
Definition: ImageLutModel.cpp:151
double getBinValue(int)
get the number of voxels that end up in a given bin index
Definition: ImageLutModel.cpp:91
double * greyLevels
Table containing histogram bins.
Definition: ImageLutModel.h:106
double getMinValue()
get the minimal voxel value (lutMin)
Definition: ImageLutModel.cpp:141
vtkSmartPointer< vtkImageData > image
currently modeled image
Definition: ImageLutModel.h:97
double getMaxValue()
get the maximal voxel value (lutMax)
Definition: ImageLutModel.cpp:136
double minValue
Min the possible data value (given by the data type of the image)
Definition: ImageLutModel.h:100
~ImageLutModel()
destructor
Definition: ImageLutModel.cpp:48
double highestGreyLevel
highest number of grey level (highest value in greyLevels array)
Definition: ImageLutModel.h:109
double getLevelFromPercent(int)
get level value from a percentage
Definition: ImageLutModel.cpp:169
unsigned int nbHistoBins
size of greyLevels
Definition: ImageLutModel.h:112
ImageLutModel(vtkSmartPointer< vtkImageData >)
Constructor: set the image data.
Definition: ImageLutModel.cpp:32