libsrc/Helper.cpp
float *Helper::getCIELabFromIntegerScaledCIELab(unsigned *cieLabScaled, float *cieLab) {
    cieLab[0] = (float) (((double) cieLabScaled[0]) / 65535 * 100);
    cieLab[1] = (float) (((double) cieLabScaled[1]) / 65535 * 255 - 128);
    cieLab[2] = (float) (((double) cieLabScaled[2]) / 65535 * 255 - 128);
    return cieLab;
  }
/**
    <p>Convert 16 bit fractional integer scaled CIELab values used in ICC profiles and DICOM to floating point.</p>

    <p>See ICC v4.3 Tables 12 and 13, and DICOM PS 3.3 C.10.7.1.1.</p>

     @param cieLabScaled  array of length 3 containing 16 bit scaled L*,a*,b* values from  0 to 65535
     return     array of length 3 containing L*,a*,b* values with L* from 0.0 to 100.0, and a* and b* from -128.0 to +127.0
    **/
Convert 16 bit fractional integer scaled CIELab values used in ICC profiles and DICOM to floating point.
See ICC v4.3 Tables 12 and 13, and DICOM PS 3.3 C.10.7.1.1.


Convert 16 bit fractional integer scaled CIELab values used in ICC profiles and DICOM to floating point . See ICC v4 . 3 Tables 12 and 13 and DICOM PS 3 . 3 C . 10 . 7 . 1 . 1 .
float *Helper::getCIELabFromIntegerScaledCIELab(unsigned *cieLabScaled, float *cieLab) {
    cieLab[0] = (float) (((double) cieLabScaled[0]) / 65535 * 100);
    cieLab[1] = (float) (((double) cieLabScaled[1]) / 65535 * 255 - 128);
    cieLab[2] = (float) (((double) cieLabScaled[2]) / 65535 * 255 - 128);
    return cieLab;
  }
float * Helper :: getCIELabFromIntegerScaledCIELab ( unsigned * cieLabScaled , float * cieLab ) { cieLab [ 0 ] = ( float ) ( ( ( double ) cieLabScaled [ 0 ] ) / 65535 * 100 ) ; cieLab [ 1 ] = ( float ) ( ( ( double ) cieLabScaled [ 1 ] ) / 65535 * 255 - 128 ) ; cieLab [ 2 ] = ( float ) ( ( ( double ) cieLabScaled [ 2 ] ) / 65535 * 255 - 128 ) ; return cieLab ; }
<p>Convert 16 bit fractional integer scaled CIELab values used in ICC profiles and DICOM to floating point.</p>
<p>See ICC v4.3 Tables 12 and 13, and DICOM PS 3.3 C.10.7.1.1.</p>
<p > Convert 16 bit fractional integer scaled CIELab values used in ICC profiles and DICOM to floating point . < / p > <p > See ICC v4 . 3 Tables 12 and 13 and DICOM PS 3 . 3 C . 10 . 7 . 1 . 1 . < / p >