Click here to Skip to main content
14,735,364 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

Basically I am working on a project that is currently calculating the PSNR (peak signal noise ratio) of 2 images (one is the original and the other being the colour quantised one).

In order for me to calculate the PSNR my images need to be in bitmap format, now for ppm I have managed the conversion, however for images that are of .raw format I am struggling to find a solution, could anyone please lead me to a source or explain how this can be done in C#?

Many thanks

Arj
Posted
Updated 6-Oct-17 9:32am

1 solution

Your best bet is to find out the image format, RAW implies it's just raw pixel data, and using the code in my image processing articles to create a Bitmap you can access the pixels of directly, and copy in your pixel data.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900