Is there any way to display floating point image on web form?
Alternatively, I would like to search for an algorithm to convert floating point image into a PNG or JPEG format.
I am looking for an open source project.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends very much on the format of the floating point imagery.
If you have straight uncompressed RGBA floats you can simply iterate over them using unsafe methods to clamp the float values to byte values and fill up the pixels of a dotnet bitmap which has been locked using the
lockbitsmethod.For more information on
lockbitssee this article by Bob Powell.If the floating point data is not uncompressed or not in a known or accessible format, you might try an open source library such as FreeImage.NET to open the image.