C ++ image image pixels
4 answers
The answer depends on the format of the image file. Is it a format that contains raw RGB data (like uncompressed TGA )? Is this a YUV image? Is it a compressed image like JPEG or PNG?
There are already many C ++ libraries that can read a large number of image file formats and then provide the required pixel level access. Take a look at Adobe GIL or CImg for example.
+2
a source to share
There are many freely available libraries for reading various image file formats. Since you are using C ++ you might look at Adobe 's Universal Image Library (GIL) or even OpenCV .
+1
a source to share
This will help you figure it out, very easy to use and "low level" image library: http://easybmp.sourceforge.net/
+1
a source to share