1 | initial version |
Hello @Hstuart!
If you are trying to detect some colored object from the image then all the previous answers that uses HSV Color Space is fine. But if you want to compute the Difference between two colors for Color Quality analysis to find Color metrics then the Answer is different.
First you have to convert your Color Space(CS) from device dependent CS to Device Independent CS. e.g CIE 1931 XYZ, CIELUV, CIELAB, CIEUVW.Unlike the Device dependent Color space like HSV, RGB, YUV,etc.. these DI CS are independent of the device/screen that you view.
There are some standards that are followed by International Color Consortium (ICC) for finding color metrics. Common definitions make use of the Euclidean distance in a device independent color space such as CIE Lab* Color Space.
These are the metrics used to represent the color differences.
For more Info regarding this, Please read these useful links.
http://zschuessler.github.io/DeltaE/learn/
http://www.color.org/index.xalter
2 | No.2 Revision |
Hello @Hstuart!
If you are trying to detect some colored object from the image then all the previous answers that uses HSV Color Space is fine. But if you want to compute the Difference between two colors for Color Quality analysis to find Color metrics then the Answer is different.
First you have to convert your Color Space(CS) from device dependent CS to Device Independent CS. e.g CIE 1931 XYZ, CIELUV, CIELAB, CIEUVW.Unlike the Device dependent Color space like HSV, RGB, YUV,etc.. these DI CS are independent of the device/screen that you view.
There are some standards that are followed by International Color Consortium (ICC) for finding color metrics. Common definitions make use of the Euclidean distance in a device independent color space such as CIE Lab* Color Space.
These are the metrics used to represent the color differences.
For more Info regarding this, Please read these useful links.
http://zschuessler.github.io/DeltaE/learn/
http://www.color.org/index.xalter
http://www.imatest.com/2015/09/color-difference-ellipses/