Skip to content

Fix huerotate clamping to support subpixel types other than u8, f32, and f64#2860

Open
RunDevelopment wants to merge 2 commits intoimage-rs:mainfrom
RunDevelopment:huerotate-fix-for-all-but-u8
Open

Fix huerotate clamping to support subpixel types other than u8, f32, and f64#2860
RunDevelopment wants to merge 2 commits intoimage-rs:mainfrom
RunDevelopment:huerotate-fix-for-all-but-u8

Conversation

@RunDevelopment
Copy link
Copy Markdown
Member

The clamping done by huerotate and huerotate_in_place assumed u8 and was incorrect for all primitives except u8, f32, and f64.


Unrelated, it is really wasteful to do all calculations in f64 for subpixel types like u8 and u16.

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.

1 participant