dyAmandys / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Converting to Lab color mode #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to have posibility to convert image from RGB to Lab color 
mode and vice-versa.

Original issue reported on code.google.com by dariusz....@gmail.com on 29 Jan 2008 at 10:12

GoogleCodeExporter commented 9 years ago
I'm sorry, it's not defect but enhacement :)

Original comment by dariusz....@gmail.com on 29 Jan 2008 at 10:14

GoogleCodeExporter commented 9 years ago
hi,

There are existing c# codes that converts rgb -> ciexyz ->cielab and vice versa.
1.  http://www.easyrgb.com/math.php?MATH=M7#text7
2. http://www.codeproject.com/KB/GDI-plus/colorclass.aspx
3.  http://www.codeproject.com/KB/recipes/colorspace1.aspx

Original comment by oliver.a...@gmail.com on 3 Feb 2008 at 3:39

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 3 Feb 2008 at 8:53

GoogleCodeExporter commented 9 years ago
Hi there,

actually, you cannot convert from RGB to CIE L*a*b*, there is no such transform 
(and
anyone telling you otherwise is wrong). The reason for this is that there is no 
such
thing as 'RGB' , it's undefined. You can, however, transform from sRGB to CIE 
XYZ and
CIE Lab, and that's what the links given by Andrew actually refer to (thank you 
for
incling my article btw). Take into account though that very few images on the 
web
actually are sRGB, and don't take your digital camera's word for (they do not 
produce
sRGB images, not by a long stretch!). As an approximation it may do though, but 
if
you want an approximation there is no point going to CIE Lab in the first place 
...

Original comment by Yves.Van...@gmail.com on 5 Mar 2008 at 10:00