Ask Your Question

Revision history [back]

Grayscale with weighted colors

I'm trying to reproduce the results of Photoshop's "Black and White" color adjustments (Image -> Adjustments -> Black and White) in OpenCV, however I was not able to figure out how they calculate the resulting intensity image. What confuses me is that they use percentages in the HSV color space, and I'm not sure to what the percentage relates to, the "value" channel? Also the percentages range from -200% to +300%....

I created some samples using a color wheel, maybe somebody could give me a hint about how to calculate the intensity?

Thanks a lot in advance :)

Link to full image

image description