26 #ifndef ImageLutModel_H
27 #define ImageLutModel_H
29 #include <vtkImageData.h>
30 #include <vtkSmartPointer.h>
94 void updateHistogram();
97 vtkSmartPointer<vtkImageData> image;
109 double highestGreyLevel;
112 unsigned int nbHistoBins;
The class ImageLutModel model the histogram of a given vtkImageData.
Definition: ImageLutModel.h:46
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
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 getMinValue()
get the minimal voxel value (lutMin)
Definition: ImageLutModel.cpp:141
double getMaxValue()
get the maximal voxel value (lutMax)
Definition: ImageLutModel.cpp:136
~ImageLutModel()
destructor
Definition: ImageLutModel.cpp:48
double getLevelFromPercent(int)
get level value from a percentage
Definition: ImageLutModel.cpp:169
ImageLutModel(vtkSmartPointer< vtkImageData >)
Constructor: set the image data.
Definition: ImageLutModel.cpp:32