LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-11-2004, 10:34 AM   #1
jb_li
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Rep: Reputation: 0
[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.
 
Old 05-11-2004, 11:02 AM   #2
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
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...
 
Old 05-11-2004, 11:46 AM   #3
jb_li
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Original Poster
Rep: Reputation: 0
hm,

thank you ..
i just wanted to know how these libraries work in detail and how *they* fetch the information of a picture
 
Old 05-11-2004, 11:52 AM   #4
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
This page might help you. It outlines what's in graphics file headers and such: http://www.dcs.ed.ac.uk/home/mxr/gfx/
 
Old 05-11-2004, 11:55 AM   #5
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
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.
 
Old 05-11-2004, 12:47 PM   #6
jb_li
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Original Poster
Rep: Reputation: 0
thank you all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pictures brianthegreat Linux - Software 3 11-14-2005 12:16 PM
viewing pictures with? Roger Krowiak Linux - Software 5 01-05-2005 04:40 PM
Pictures in wiki? Bad_Bob LQ Suggestions & Feedback 1 06-29-2004 08:09 AM
Resizing pictures dancar Linux - General 3 02-24-2004 05:22 PM
Penguin pictures secprovider General 2 09-24-2003 02:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration