Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Convert JPEG to pixel intensity array

by cdherold (Monk)
on Oct 30, 2006 at 23:38 UTC ( #581390=perlquestion: print w/ replies, xml ) Need Help??
cdherold has asked for the wisdom of the Perl Monks concerning the following question:

Dearest Monks,

I am humbled once again.

I am about to undertake a daunting task ... multiple object identification and decoding within an image (e.g., JPEG). Screwy out of the box programs don't work for my application ... and I wanted to try to do it myself anyways.

First I need to have an two-dimensional array that will contain the row/column pixel intensity data from the image. Just intensity, not color.

How can I do this so that I can call $pixel[20][450] and get the pixel intensity in row 20, column 450 (and for every other pixel in the image)?

Or where should I start?

Chris

Comment on Convert JPEG to pixel intensity array
Download Code
Re: Convert JPEG to pixel intensity array
by Joost (Canon) on Oct 30, 2006 at 23:53 UTC
Re: Convert JPEG to pixel intensity array
by jhourcle (Prior) on Oct 31, 2006 at 03:32 UTC

    You might want to look at PDL (specifically PDL::IO::Pic). A few of the folks that I work with use it or similar software (IDL, GDL) to analyze images.

Re: Convert JPEG to pixel intensity array
by zentara (Archbishop) on Oct 31, 2006 at 11:58 UTC
Re: Convert JPEG to pixel intensity array
by merlyn (Sage) on Oct 31, 2006 at 23:11 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://581390]
Approved by Paladin
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2014-12-27 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls