DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Protected Member Functions | Private Member Functions
DiCIELABFunction Class Reference

Class to manage CIELAB LUTs (for calibration) More...

+ Inheritance diagram for DiCIELABFunction:

List of all members.

Public Member Functions

 DiCIELABFunction (const char *filename, const E_DeviceType deviceType=EDT_Monitor, const signed int ord=-1)
 constructor, read device characteristics file.
 DiCIELABFunction (const double *val_tab, const unsigned long count, const Uint16 max=255, const E_DeviceType deviceType=EDT_Monitor, const signed int ord=0)
 constructor, use given array of luminance/OD values.
 DiCIELABFunction (const Uint16 *ddl_tab, const double *val_tab, const unsigned long count, const Uint16 max=255, const E_DeviceType deviceType=EDT_Monitor, const signed int ord=0)
 constructor, use given array of DDL and luminance values.
 DiCIELABFunction (const double val_min, const double val_max, const unsigned long count=256, const E_DeviceType deviceType=EDT_Monitor, const signed int ord=0)
 constructor, compute luminance/OD values automatically within the specified range.
virtual ~DiCIELABFunction ()
 destructor
int writeCurveData (const char *filename, const OFBool mode=OFTrue)
 write curve data to a text file

Protected Member Functions

DiDisplayLUTgetDisplayLUT (unsigned long count)
 create CIELAB LUT with specified number of entries

Private Member Functions

 DiCIELABFunction (const DiDisplayFunction &)
DiCIELABFunctionoperator= (const DiDisplayFunction &)

Detailed Description

Class to manage CIELAB LUTs (for calibration)


Constructor & Destructor Documentation

DiCIELABFunction::DiCIELABFunction ( const char *  filename,
const E_DeviceType  deviceType = EDT_Monitor,
const signed int  ord = -1 
)

constructor, read device characteristics file.

Keywords: "max" for maximum DDL (Device Driving Level, required at first position) "amb" for ambient light and "lum" for illumination (both optional) "ord" for the order of the polynomial curve fitting algorithm used to interpolate the given base points (0 or absent = use cubic spline interpolation)

Parameters:
filenamename of the characteristics file (luminance/OD for each DDL)
deviceTypetype of the output device (default: monitor)
ordorder of the polynomial curve fitting algorithm used to interpolate the given base points (-1 = use file setting, 0 = cubic spline)
DiCIELABFunction::DiCIELABFunction ( const double *  val_tab,
const unsigned long  count,
const Uint16  max = 255,
const E_DeviceType  deviceType = EDT_Monitor,
const signed int  ord = 0 
)

constructor, use given array of luminance/OD values.

UNTESTED Values must be sorted and complete (i.e. there must be an entry for each DDL) The given arrays are copied internally.

Parameters:
val_tabpointer to array with luminance/OD values
countnumber of array elements (should be equal to 'max + 1')
maxmaximum DDL (device driving level)
deviceTypetype of the output device (default: monitor)
ordorder of the polynomial curve fitting algorithm used to interpolate the given base points (0 or negative = use cubic spline interpolation)
DiCIELABFunction::DiCIELABFunction ( const Uint16 *  ddl_tab,
const double *  val_tab,
const unsigned long  count,
const Uint16  max = 255,
const E_DeviceType  deviceType = EDT_Monitor,
const signed int  ord = 0 
)

constructor, use given array of DDL and luminance values.

UNTESTED Values will be automatically sorted and missing values will be interpolated. The given arrays are copied internally.

Parameters:
ddl_tabpointer to array with DDL values (must be with the interval 0..max)
val_tabpointer to array with luminance/OD values
countnumber of array elements (2..65536)
maxmaximum DDL (device driving level)
deviceTypetype of the output device (default: monitor)
ordorder of the polynomial curve fitting algorithm used to interpolate the given base points (0 or negative = use cubic spline interpolation)
DiCIELABFunction::DiCIELABFunction ( const double  val_min,
const double  val_max,
const unsigned long  count = 256,
const E_DeviceType  deviceType = EDT_Monitor,
const signed int  ord = 0 
)

constructor, compute luminance/OD values automatically within the specified range.

Parameters:
val_minminimum luminance/OD value
val_maxmaximum luminance/OD value
countnumber of DDLs (device driving level, 1..65536))
deviceTypetype of the output device (default: monitor)
ordorder of the polynomial curve fitting algorithm used to interpolate the given base points (0 or negative = use cubic spline interpolation)

Member Function Documentation

DiDisplayLUT* DiCIELABFunction::getDisplayLUT ( unsigned long  count) [protected, virtual]

create CIELAB LUT with specified number of entries

Parameters:
countnumber of LUT entries
Returns:
pointer to created LUT if successful, NULL otherwise

Implements DiDisplayFunction.

int DiCIELABFunction::writeCurveData ( const char *  filename,
const OFBool  mode = OFTrue 
) [virtual]

write curve data to a text file

Parameters:
filenamename of the text file to which the data should be written
modewrite CC and PSC to file if OFTrue
Returns:
status, true if successful, false otherwise

Implements DiDisplayFunction.


The documentation for this class was generated from the following file:


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027