anton_foy
29th January 2022, 21:21
My goal is to Color Correct a batch of clips automatically and using reference images to further get the process more towards natural colors or even a certain Color Correction "style". So I came up with an idea:
1. make a library of images/data, the original image and manually Color Corrected image, extract the histogram data from both versions (original and color corrected).
2. analyze the imported new clips/images in Avisynth and compare their histogram data to the original ones in the library to match to the closest "looking" one(s).
3. Then change the colors and gamma to be closer to the Color Correction corresponding to the matched library image histogram.
4 (and/or). Apply automatic Color Correction filter(s) (GamMac/GamMatch/Autolevels/RGBAdapt/Automatic White Balance/GreyWorld etc.) and match histogram to the matched Color Corrected image in the library.
5. output the Color Correction to a file as data or .cube (it can be applied onto a hald.png and then convert into a .cube for example) to be used in other programs aswell.
So in short, match the clip/image to the most fitting in the library, auto color correct and output new correction as data.
I would like to find out if it is possible in AVS+ and if there are better ways to do this.
For example if it is a good approach to match using histogram to find out if the colors and gamma corresponds to the clip to be processed.
EDIT: maybe this idea with matching histograms is already what GamMatch is doing? I just found out about it when I searched around here.
1. make a library of images/data, the original image and manually Color Corrected image, extract the histogram data from both versions (original and color corrected).
2. analyze the imported new clips/images in Avisynth and compare their histogram data to the original ones in the library to match to the closest "looking" one(s).
3. Then change the colors and gamma to be closer to the Color Correction corresponding to the matched library image histogram.
4 (and/or). Apply automatic Color Correction filter(s) (GamMac/GamMatch/Autolevels/RGBAdapt/Automatic White Balance/GreyWorld etc.) and match histogram to the matched Color Corrected image in the library.
5. output the Color Correction to a file as data or .cube (it can be applied onto a hald.png and then convert into a .cube for example) to be used in other programs aswell.
So in short, match the clip/image to the most fitting in the library, auto color correct and output new correction as data.
I would like to find out if it is possible in AVS+ and if there are better ways to do this.
For example if it is a good approach to match using histogram to find out if the colors and gamma corresponds to the clip to be processed.
EDIT: maybe this idea with matching histograms is already what GamMatch is doing? I just found out about it when I searched around here.