C/JPEG Processing !
Expert: Prince M. Premnath - 4/12/2007
Question Hi,
I have a 100 x 1000 picel black and white JPEG image. I'd like to convert the JPEG into a matrix (100x1000) where each entry represents the gray scale intensity of one pixel from JPEG. I'd like to use C language for that but I don't know what I need in order to open and read JPEG's. I heard I may need to download certain files for that. I'd be thankful for any ideas you might have to get me started. Thankfully, Andres.
AnswerDear Mr Andres !
I hope i have already answered 3 to 4 question's over graphics file manipulation , but im sure all my answers about Bit Map Files (*.BMP) Files ,The difference between a BMP file and a JPEG file is how the file is actually compressed and stored on disk !
A BMP file didn't follow any special data structure to store the pixel values where as a JPEG file format expect lot of processing to retrieve the pixel information!
I have already submitted a code to manipulate and display images of a BMP file , if you take a look at that program sure you will get some idea's about how to process a graphics file !
Thanks and regards
Prince M. Premnath