LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   [c] analysation of pictures (https://www.linuxquestions.org/questions/programming-9/%5Bc%5D-analysation-of-pictures-180310/)

jb_li 05-11-2004 10:34 AM

[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.

The_Nerd 05-11-2004 11:02 AM

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:

jb_li 05-11-2004 11:46 AM

hm,

thank you ..
i just wanted to know how these libraries work in detail and how *they* fetch the information of a picture

itsme86 05-11-2004 11:52 AM

This page might help you. It outlines what's in graphics file headers and such: http://www.dcs.ed.ac.uk/home/mxr/gfx/

The_Nerd 05-11-2004 11:55 AM

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.

jb_li 05-11-2004 12:47 PM

thank you all.


All times are GMT -5. The time now is 04:03 PM.