You are here:

C/JPEG Processing !

Advertisement


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.

Answer
Dear 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

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Prince M. Premnath

Expertise


I'm sure that I can solve any doubts in Turbo C ,Graphics Programing ,Mouse, Hardware Programming ,File System ,Interrupts, BIOS handling , TSR Programming , General Concepts in C Language, handling inline Assembly statements

Experience

Research over 6+ Years

Organizations
CG-VAK Softwares and Exports Limited

Education/Credentials
Masters in Computer Applications

©2012 About.com, a part of The New York Times Company. All rights reserved.