Hi, Im having this project in our CS that needs to read either jpg or bmp graphics file format so that we can process it.
Actually we are going to make a face recognition program using neural network. So inorder to do so, we need to read the pictures of the faces to be recognize either in jpg or bmp.
I was able to use MATLAB in one of my programming class and tried reading jpg graphics file format. MATLAB represented the graphics file format as a multidimensional array whose array dimensions are dependent on the graphics file resolution. Is their a C++ library that is designed to do he same task? Which one?
BMP is a very simple format. As a twist, it isn't so easy to find good code examples on the internet for reading BMP, but you can easily write your own reader for it. If you're really lost, I can give you a simple BMP reader I wrote. (If you go to the pygame cookbook site there is a Load 32-bit BMP with Alpha reader I wrote which has the essential details...)
The first in my mind is ImageMagick : http://www.imagemagick.org/Magick++/
You can use it as a command line soft, or include it in your project (linking against it).