Algorithms for color balancing images?
March 11, 2014 1:28 PM Subscribe
I have a system that records transmitted light images of samples in three colors by sequential illumination with red, green, and blue LEDs. This works for acquiring color images, but the overall color balance is off. I want to write code for color balancing these images, using data acquired from a reference target (like this
). I want this to be part of an open source project, so existing tools in photoshop and similar programs aren't helpful to me. So far, I haven't found a good reference for how to do this; can someone recommend one to me?
posted by pombe to Technology (6 answers total) 4 users marked this as a favorite
I've read the wikipedia pages on color balancing
and I have a general understanding of how to do this, but I find all the different color spaces non-intuitive, and don't have a clear vision of how to get from uncalibrated to calibrated images. Naively, it seems like I should be able to take the measured RGB values from a target and use least squares to find the matrix relating them to the ideal RGB values, and then use that to calibrate my images, but everything I read makes it sound harder than that. If you know of a good explanation of this process, or open-source code that already does what I want, that would be great.