AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

RGB calibration using references

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

RGB calibration using references

Postby Forzo » Mon Feb 08, 2016 11:57 am

Hi

I'm trying to calibrate the colors on pictures obtained from a webcam. The goal is to have three separate squares on a paper, one red, one green and one blue, and use these to calibrate the obtained pictures. For instance lets assume that the red square is (255,0,0) and likewise for the green and blue squares. Is it possible, using AForge, to "tell" the software that this is (255,0,0) and make corrections to the rest of the image?

I have looked at LevelsLinear and it seems to do approximately what I want but I cannot figure out how to use it in this way. I have tried to get a reading for a red square and it turns out to be something else than (255,0,0), let's say (227,12,15) or something like that. Is it possible to set the in and out ranges of the LevelsLinear filter to achieve a correction that makes the square (255,0,0)?

Thankful for any help possible, I'm completely stuck right now...
Forzo
 
Posts: 2
Joined: Mon Sep 21, 2015 4:18 pm



Return to AForge.NET Framework