MeVisLab Toolbox Reference
mlCIELabToRGBTools.h File Reference

Some draft tools to convert CIELab to RGB. More...

#include "MLMLToDicomToolsSystem.h"
#include <mlTypeDefs.h>
#include <mlLinearAlgebra.h>

Go to the source code of this file.

Namespaces

namespace  ml
 Main documentation file for ML users and developers.
 

Functions

Vector3 ml::convertXYZToRGB (const Vector3 &xyzIn, bool clampToStayInRGB=true)
 Small and bad converter from XYZ in range [0,0,0], [95.047, 100, 108.883] to RGB with r,g,b in [0,0,0] to [1,1,1], assuming observer = 2° and illuminant = D65.
 
Vector3 ml::convertCIELabToXYZ (const Vector3 &cieLabIn)
 Small and bad converter from CIELab in range [0,-128,-128], [100, 128, 128] to XYZ in range [0,0,0], [95.047, 100, 108.883], assuming observer = 2° and illuminant = D65.
 
Vector3 ml::convertCIELabToRGB (const Vector3 &cieLabIn, bool clampToStayInRGB=true)
 Converts an CIELab value to RGB without regarding monitor or observation specific settings, assuming observer = 2° and illuminant = D65.
 
Vector3 ml::convertRGBToXYZ (const Vector3 &rgbIn, bool clampToObserver2IlluminantD65=false)
 Small and bad converter from RGB to XYZ with r,g,b in [0,1], assuming observer = 2° and illuminant = D65.
 
Vector3 ml::convertXYZToCIELab (const Vector3 &xyzIn)
 Small and bad converter from XYZ to CIELab, assuming observer = 2° and illuminant = D65.
 
Vector3 ml::convertRGBToCIELab (const Vector3 &rgbIn)
 Converts an RGB value in [0,1] to CIELab without regarding monitor or observation specific settings, assuming observer = 2° and illuminant = D65.
 
Vector3 ml::scaleCIELabTo16BitUnsigned (Vector3 cieLabIn)
 Scale a given cieLabIn value to 16 bit unsigned integer range as described in DICOM standard C.10.7.1.1 Encoding of CIELab Values, however, without checking whether cieLabIn is in valid range.
 
Vector3 ml::unscaleCIELabTagValue (Vector3 cieLabScaledIn)
 Unscale a given cieLabScalesIn value to [0,100], [-128,127], [-127,127] ranges as described in DICOM standard C.10.7.1.1 Encoding of CIELab Values, however, without checking whether cieLabScaledIn is in valid range.
 

Detailed Description

Some draft tools to convert CIELab to RGB.

Author
Wolf Spindler
Date
2016-10-21

Definition in file mlCIELabToRGBTools.h.