05-22-2019, 08:44 PM
There is the canonical script for this: Luca De Alfaro's whitebalance. It requires a small update to work in Gimp 2.10. You sample a color that should be neutral in the picture (ideally a grey card, otherwise a piece of print paper or a white fridge will do) and it tweaks the color balance to make that color grey. There is a similar feature in more advanced/specialized photo editors (RawTherapee, Darktable,..., that will also process JPEGs if you don't want to take the trouble to "shoot raw").
However, that means R=G=B in the image data and nothing else. What you see will depend on the color calibration of your screen, and on the calibration of the screen of your technician, all this under the control of the image color profile if there is one. Not so easy.
IMHO doing a full color calibration each time is going to be difficult because putting a grey card in the patient's mouth isn't going to be easy (while being completely necessary, because the GC has to receive the very same light as the picture). It would be easier to take the picture with a reasonably constant/reproducible lighting,, find its color temperature (possibly by shooting a grey card), and then use this color temperature to adjust the color balance of further shots. It could also be possible to set this color temperature in the camera settings, so you would get color-neutral pictures out of the box.
Warning, Canon minion speaking: Canon has recently issued a pair of macro lenses (one for mirror-less,cameras, and one for DSLRs) that have a built-in ring light around the lens (in addition to the hybrid stabilization specially designed for macrophotography). They are pretty much what I would have dreamed to have to shoot inside the mouth of people with a controlled lighting, especially considering their low price.
However, that means R=G=B in the image data and nothing else. What you see will depend on the color calibration of your screen, and on the calibration of the screen of your technician, all this under the control of the image color profile if there is one. Not so easy.
IMHO doing a full color calibration each time is going to be difficult because putting a grey card in the patient's mouth isn't going to be easy (while being completely necessary, because the GC has to receive the very same light as the picture). It would be easier to take the picture with a reasonably constant/reproducible lighting,, find its color temperature (possibly by shooting a grey card), and then use this color temperature to adjust the color balance of further shots. It could also be possible to set this color temperature in the camera settings, so you would get color-neutral pictures out of the box.
Warning, Canon minion speaking: Canon has recently issued a pair of macro lenses (one for mirror-less,cameras, and one for DSLRs) that have a built-in ring light around the lens (in addition to the hybrid stabilization specially designed for macrophotography). They are pretty much what I would have dreamed to have to shoot inside the mouth of people with a controlled lighting, especially considering their low price.