homm / color-filters-reconstruction

Very accurate color filters reconstruction tools based on 3D color LUTs
MIT License
156 stars 18 forks source link

How to adjust the filter level #14

Closed lrhehe closed 5 years ago

lrhehe commented 5 years ago

Is there any solution to adjust filter level?

One brute-force way is generating 100 CLUTs according to filter level 1-100 Is there any better one?

homm commented 5 years ago

I don't know how exactly Instagram measures "intensity" of the filters but for simple linear scale you can use amplify_lut function from pillow-lut-tools package with a scale from 0 to 1 or even beyond this range.

lrhehe commented 5 years ago

thanks, I will try this. another linear solution: originColor (1 - intensity) + filteredColor intensity