vpclab / QuickCSF

A fast, adaptive approach to estimating contrast sensitivity function parameters
GNU General Public License v3.0
12 stars 5 forks source link

Gamma correction #7

Open luizavolpi opened 3 years ago

luizavolpi commented 3 years ago

Hello again! I was wondering whether the QuickCSF code supports Gamma correction? I have a Gamma table I would like to use to adjust Gamma but I could not find info on qtpy supporting that. Thank you for you help!

domstoppable commented 3 years ago

Not directly yet, but I do see that Qt-6 appears to support custom gamma tables, which appears to be supported by QtPy already. This seems pretty straightforward, although that could just be my naivety.

I imagine a good way to specify this would be to save your gamma table as a CSV file, and then add a command-line argument for it. E.g.,

python -m QuickCSF.app --colorTable my-color-table.csv

Thoughts?