Quantcast
Channel: Intel® Software - Intel® Integrated Performance Primitives
Viewing all articles
Browse latest Browse all 1489

BGRtoLAB wrong formula specified?

$
0
0

HI

I have a question about the function BGRtoLAB

for LAB, there is a case condition specified in the Manual:

L = 903.3 * (Y/Yn)1/3. for Y/Yn≤ 0.008856

Now, if I take the border case ,  0.008856^(1/3) is ~0.207,   ->  mult  903.3   = ~187

This value is converted to range of 0..255 by factor 2.55, so we get 476 which is way out of range.

Actually i run into this condition (Y/Yn≤ 0.008856) for values like  R=0, G=0, B=10 which is pretty dark, L should be Close to 0 also

So what is wrong with your formulas?

thx & BR

Stefan


Viewing all articles
Browse latest Browse all 1489

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>