Floating Point Pixels with C# Half #3166
Unanswered
LaurentInSeattle
asked this question in
Q&A
Replies: 3 comments 3 replies
|
New in v4.1.0 https://docs.sixlabors.com/api/ImageSharp/SixLabors.ImageSharp.PixelFormats.RgbaHalf.html |
0 replies
|
Great ! I am going to give it a shot ASAP! What else do we get with version 4.1.0 ? |
3 replies
|
Completed the conversion from RgbaVector to RgbaHalf in my app... The Good : Everything works. The Bad : Took me a while to test again everything The Ugly : Blame on Microsoft: Half is a half-baked type. No literals, missing intrinsic functions, need to cast and cast again... In many places I ended up converting half pixels in float pixels to execute most of my custom algorithms. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
My little photo app is currently using ImageSharp with a pixel type of RgbaVector. That's 4 Single floats for a total of 128 bits per pixel.
Since most image processing are 'happy' with half precision and dynamic range, is it possible to have a pixel type as a Vector of Half floats ? This would drastically cut memory requirements for large images provided by modern DSLR's.
Ideally it should work exactly like RgbaVector providing R G B properties as C# half instead of float.
All reactions