Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added s-curve contrast option #650

Closed
wants to merge 2 commits into from

Conversation

refotografia
Copy link
Contributor

This is a version of the original contrast filter, but using s-curve approach.

@brendan-duncan
Copy link
Owner

Thanks for this!

I'm going to look at adding this code to the existing contrast function, as an option. There's a bunch of other scaffolding that would need to go in for a new function, and it would add to the technical debt.

@refotografia
Copy link
Contributor Author

refotografia commented May 19, 2024 via email

@brendan-duncan
Copy link
Owner

That would be great. I was thinking something like
enum ContrastMode { default, scurve } ...
Image contrast(Image src,
{required num contrast,
Image? mask,
Channel maskChannel = Channel.luminance,
ContrastMode mode = ContrastMode.default})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants