View Single Post
Old 31st March 2022, 20:43   #13  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,666
Interesting find Arx1meD. Looking around I found another implementation in Python: The color transformations there are consistent with what is used in the pdf.

Edit:

I found this page: Paralenz color correction algorithm and it produces a decent looking result for the example image.



The GitHub page describes the process:

Quote:
The algorithm

Calculate the average color for image.
Hueshift the colors into the red channel until a minimum red average value of 60.
Create RGB histogram with new red color.
Find low threshold level and high threshold level.
Normalize array so threshold level is equal to 0 and threshold high is equal to 255.
Create color filter matrix based on the new values.
Maybe something that can already be done in AviSynth?

Last edited by Reel.Deel; 1st April 2022 at 09:04.
Reel.Deel is offline   Reply With Quote