[c] analysation of pictures
hello,
just a small question regarding the analysation of pictures. What possibilities do I have using the programming language C to get information of a given picture (.png, bmp, jpeg ...). Information about its size, colors and so on ? Are there any libraries (and of course there are) to use to quarantee a precise analysation ? And how does such an examination looks like ? I mean, what do i need to provide the programm with, if there were no libs available ? I need just a few facts ... a few links to documentations would be very kind. thanks in advance h.d. |
Well.... As for getting the picture type and size, I suggest using SDL's image loading routines, or Try out DevIL. I must say that I don't understand the rest of your post. However, if you would like to do picture analysation, like say, finding squares and circles in a picture, though I have never attempted anything like this, I suggest you use Object Oriented Programming, so that you can make your life easier. Sorry if I didn't help, but I don't really understand your post... :( :scratch:
|
hm,
thank you .. i just wanted to know how these libraries work in detail and how *they* fetch the information of a picture |
This page might help you. It outlines what's in graphics file headers and such: http://www.dcs.ed.ac.uk/home/mxr/gfx/
|
Well they doing it by fetching the right byte(s), either out of a file or memory, and reading the right info out of them, depending on the file type of course.
|
thank you all.
|
All times are GMT -5. The time now is 04:03 PM. |