Click here to Skip to main content
14,113,296 members
Rate this:
Please Sign up or sign in to vote.
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

Updated 6-Oct-17 8:32am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190518.1 | Last Updated 6 Oct 2017
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100