-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Open
Description
🚀 The feature
Adding compatibility to uint8
-dtype [0,255]-range image format to the GaussianNoise transform.
Motivation, pitch
Found this transformation to be useful, but had an experimental pipeline that did some transformations out of order to try and keep uint8
dtype for as long as possible.
The solution is also very simple, as we just have to move the normally-distributed array from [0-1] to the [0-255] representation range and optionally do rounding. I already have a version of this implemented, and with uint8s being the regular way to open standard images I think some other people might also find it convenient :)
Also, it's just a bit more performant than doing a cast from uint8 to float_ and back :v
Alternatives
No response
Additional context
No response
vadimkantorov
Metadata
Metadata
Assignees
Labels
No labels