Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 surveying the Monastery: (7)
As of 2014-10-25 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (145 votes), past polls