title: Reading an image file in C/C++
body: <p>I need to read an image file in C/C++. It would be very great, if some one can post the code for me.</p>
  
  <p>I work on gray scale images and the images are JPEG. I would like to read the images into a 2D array which will make my work easy. </p>