33 #include "dcmtk/config/osconfig.h"
35 #include "dcmtk/dcmimgle/didispfn.h"
37 #define INCLUDE_CSTDDEF
38 #include "dcmtk/ofstd/ofstdinc.h"
66 const signed int ord = -1);
80 const unsigned long count,
81 const Uint16 max = 255,
83 const signed int ord = 0);
98 const double *val_tab,
99 const unsigned long count,
100 const Uint16 max = 255,
102 const signed int ord = 0);
114 const double val_max,
115 const unsigned long count = 256,
117 const signed int ord = 0);
131 const OFBool mode = OFTrue);
int setAmbientLightValue(const double value)
set (reflected) ambient light value.
double JNDMax
maximum JND index value for the given display system
int writeCurveData(const char *filename, const OFBool mode=OFTrue)
write curve data to a text file
double * GSDFSpline
array of values used for the interpolation of the GSDF
monitor (softcopy output device), values expected to be in luminance (cd/m^2)
int setMaxDensityValue(const double value)
set maximum optical density value "Dmax".
E_DeviceType
output device type
int calculateGSDFSpline()
calculate helper function for GSDF interpolation
Class to compute and store the Display lookup table.
double JNDMin
minimum JND index value for the given display system
double * GSDFValue
array of luminance/OD values defining the GSDF
int setIlluminationValue(const double value)
set illumination value.
DiGSDFunction(const char *filename, const E_DeviceType deviceType=EDT_Monitor, const signed int ord=-1)
constructor, read device characteristics file.
DiDisplayLUT * getDisplayLUT(unsigned long count)
create GSDF LUT with specified number of entries
int calculateGSDF()
calculate GSDF (array of 1023 luminance/OD values)
Class to manage GSDF LUTs (for calibration)
static const unsigned int GSDFCount
costant defining the number JND indexes for the maximum luminance/OD range (1023) ...
Class to handle hardcopy and softcopy device characteristics file and manage display LUTs (for calibr...
virtual ~DiGSDFunction()
destructor
int setMinDensityValue(const double value)
set minimum optical density value "Dmin".
int calculateJNDBoundaries()
calculate 'JNDMin' and 'JNDMax' for the given luminance/OD range
static double getJNDIndex(const double lum)
calculate the JND index for a given luminance value