Individual Channel Gain (convertTo for channels) [closed]

asked 2013-11-26 13:23:13 -0500

fooj gravatar image

I Would like to know how to adjust the "gain" of the individual R, G or B channels in an image.

That is, I have a bunch of images taken from a bunch of individual "gadgets", each gadget uses the same make and model image sensor, make and model lens and make and model lighting arrangement. The gadgets are completely enclosed. The subject of the images are just various solid color backgrounds (yellowish, orangish, bluish, etc.).

Given the controlled conditions, ideally the color variability from one gadget to another would be zero, but in reality the coloring varies slightly. I have analyzed the images and found that for a given gadget the individual channels will vary consistently up or down regardless of which colored background was used compared to the average. For example for gadget "A" the red channel will be consistently higher by some percentage compared to the average of all the gadgets.

What I want to do is adjust the individual channels of individual gadgets so that the bitmap values are more consistent. Is there an efficient way to do this in OpenCV?



edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-11-02 10:06:30.674162


Are these gadgets different cameras? In a controlled environment the same camera type should give the same images (apart from the camera noise) and thus give the same colors.

Guanta gravatar imageGuanta ( 2013-11-26 15:48:16 -0500 )edit