Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Read out pixels from .jpgs

Reply
Thread Tools

Read out pixels from .jpgs

 
 
Kai Berger
Guest
Posts: n/a
 
      07-01-2004
Hi together,

I want to read out every pixel (that means its colour value) from
a jpeg in an array.

Is there a function in c++, that fulfills this task?
(In java there is a certain function called PixelGrabber)

Thx,

Kai


 
Reply With Quote
 
 
 
 
Allan Bruce
Guest
Posts: n/a
 
      07-01-2004

"Kai Berger" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi together,
>
> I want to read out every pixel (that means its colour value) from
> a jpeg in an array.
>
> Is there a function in c++, that fulfills this task?
> (In java there is a certain function called PixelGrabber)
>
> Thx,
>
> Kai
>
>


You will need to use a library to read the jpeg format, there is one from
www.ijg.org that you can use. There is nothing in the C++ standard that
deals with jpegs directly.
Allan


 
Reply With Quote
 
 
 
 
John Carson
Guest
Posts: n/a
 
      07-01-2004
"Kai Berger" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)
> Hi together,
>
> I want to read out every pixel (that means its colour value) from
> a jpeg in an array.
>
> Is there a function in c++, that fulfills this task?
> (In java there is a certain function called PixelGrabber)
>
> Thx,
>
> Kai



Standard C++ knows nothing about graphics. You will need a 3rd party library
which may (or may not) be platform specific. Try asking in either a graphics
newsgroup or a newsgroup for your particular platform.


--
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why don't Sony and Pentax have this problem? Dead pixels, defective pixels RichA Digital Photography 9 04-12-2011 08:54 AM
Can hot pixels become dead pixels? kl_tom Digital Photography 4 10-05-2006 06:52 PM
Read pixels from a PGM/PPM Image querypk@gmail.com C Programming 2 05-24-2005 06:27 AM
Pse explain "3.1m effective pixels and 6.0m redorded pixels" notreallyme Digital Photography 14 12-28-2003 03:41 PM
What's the difference between effective pixels and recorded pixels? Mark Grady Digital Photography 10 09-28-2003 11:11 PM



Advertisments