C/JPEG

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
You will need to understand the JPEG data format.
Then only you can understand what is written in a JPEG file.
You can open the file like any other file and it will be having binary data. Once you know the format, you can start checking the file contents.

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

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