how to read jpg or bmp graphics file format in C++?
| jdstufu (40) | |||
| 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? Thank you in advance guys! :) | |||
| Duoas (1595) | |||
| JPEG is not so simple, and requires several libraries. Your best bet here is to look for code on the internet. A nice little lib is found here: http://www.voicenet.com/~richgel/ 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...) Hope this helps. | |||
| jdstufu (40) | |||
| Thanks :) I will try what you said :) I keep you posted as to the developments of my program :) | |||
| Marmotton (2) | |||
| 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). But you can find some others on the web. | |||
| jdstufu (40) | |||
| Thank you Sir Marmotton :) I will try it :) | |||
This topic is archived - New replies not allowed.
