This Matlab pipeline uses a Macbeth colorchecker to correct the colors of an image.
In order to do that, it uses
DC_RAW or RAWTHERAPEE to read a raw file
ccFind to identify a Macbeth colorchecker target in the image.
White balance is performed in window mode in dcRaw.
Image is then color corrected using different techniques:
1) polyfit - weighted polyfit
2) spline based fitting (based on SLMtools)
3) SHAFT, that is a trial and error approach freely inspired by Adobe Camera Raw script
USAGE Launch noFrillsDevelopment.m to process a file or a folder containing raw images with detectable colorchecker
ccFind is a customized version of the code from the paper: Garcia Capel, Luis E. & Hardeberg, Jon Y.. Automatic Color Reference Target Detection. The 22nd Color and Imaging Conference (CIC), IS&T, Pages 119-124, Boston, MA, USA, Nov, 2014.
matlab-readraw (Fahri Readraw)
A dcraw wrapper for matlab https://github.com/farhi/matlab-readraw
DCRAW by Dave Coffin
Shape language Modeling by John D'Errico https://it.mathworks.com/matlabcentral/fileexchange/24443-slm-shape-language-modeling
Inspired by: SLM - Shape Language Modeling
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!