![]() Check out method called initLabTabs(), there is a gamma encoding and decoding. (v) OpenCV does not provide sRGB to linear RGB conversion but it does the conversion inside color.cpp code (OpenCV_DIR\modules\imgproc\src\color.cpp). (i) Understanding sRGB and linear RGB space: ![]() Linear RGB can be further used for white balance and color calibration of an image (provided color patch, like Macbeth color chart). To accomplish this, I've settled on converting sRGB colors to CIELAB color space, reducing the L value, and then converting back to sRGB like this: sRGB -> XYZ -> CIELAB, reduce the L value to get the color with a reduced brightness -> XYZ -> sRGB. In case, I have prepared a list of links (in different programming languages) which can be helpful for the conversion process (sRGB to LAB and back) and also, conversion of sRGB to linear RGB. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |