c++ - Deriving the color correction matrix with OpenCV -


i want find color correction matrix opencv using c++. have 16*32 leds different colors in led array , know actual (b, g, r) values of them. working led array recorded video , can pixel values(b', g', r') of video. relation between (b, g, r) , (b', g', r') color correction matrix.(process similar here) how find pixel in image corresponds led? if know this, can achieve color correction matrix converts (b', g', r') (b, g, r). suggestion helpful.

edit

is there opencv function or sample code find nearest values of (b, g, r) -for example (0,0,255)- in frame? realized nearest values becomes (b', g', r')

i assume, mechanical test-setup static (camera in same position relative led-panel)

in case, define coordinates , regions of leds manually. e.g. create binary mask having 1 on regions led-intensity should evaluated. such mask evaluate led intensities using simple rectangular regions.

edit

finding single led, when others off done simple thresholding, finding contour , calculating center of contour. if post image, you'll code-example.

i suggest, before start implementing auto recognitions of coordinates , colors, make tests.

plot intensities of leds , calculated values. find out, makes more impact on calculated (by opencv) value actual intensity or lightning conditions, angle camera, region of camera, particular camera (if software used several cameras), temperature, how long camera operating, etc. start implementing software if you'll fing satisfactory correspondence/accuracy between set , measured values.

p.s. wouldn't rely on automatic calculation, if had chance simplify things.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -