2017-05-17 18:31:19 -0600 | commented question | Grayscale with weighted colors @berak: I'm well aware that OpenCV is not Photoshop, however Photoshop is a handy tool to pre-process images quickly for testing. I found a good set of parameters to separate the foreground from background for object detection in my case. Usually the greyscale conversion is just a weighted sum of the color channels like described in your link |
2017-05-17 14:02:50 -0600 | asked a question | 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 :) |