how to do color correction
Mostrar comentarios más antiguos
I wanted to do Color correction in an image such that the image appears to be taken under a white light source..... please could someone help me......
Respuesta aceptada
Más respuestas (2)
Jurgen
el 11 de En. de 2013
0 votos
I guess we just have to assume you are using a normal rgb format... What image analyst suggested was to use your knowledge of the image to identify a pixel or area(group of pixels) that should be white/gray. Lets say these pixels have on average a ratio of 100:50:25 for red:green:blue. Then you correct by doubling the green intensities and quadrupling the blue intensities of all pixels.
Another way often used in cameras is histogram based. It adjusts the shape of the red, green & blue histograms to make them more similar. The downside is if your scene has alot of red for example it will look unnatural.
1 comentario
Elysi Cochin
el 12 de En. de 2013
ALEXANDROS
el 14 de Oct. de 2013
0 votos
Dear image analyst, Some questions regarding the first method you propose with the X-rite ColorChecker chart. I have used the original rgb values given by the manufacturer for each of the 3 channels for all the 24 blocks in the colorchecker.
Then i took an image with my camera with the x-rite on the scene and in order to find how these 24 colors are changing for each channel.
then i used polynomial regression for each of the 3 channels seperatly to crate an input-output relationship between the real and the distorted values for each of the 3 channels.
Lastly i apply all these input-output relationships for all the image pixels.
the final result it's not seem correct. Am i doing something wrong?
1 comentario
Image Analyst
el 14 de Oct. de 2013
That's basically it. I don't know what's wrong without seeing the code or images. Perhaps you can start a new Question on this and we'll get it figured out. Probably not until much later today because I'm teaching a color science course all day today. Post your images and code in a new question and I'll look at it when I can.
Categorías
Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!