|Just another Perl shrine|
Convert JPEG to pixel intensity arrayby cdherold (Monk)
|on Oct 30, 2006 at 23:38 UTC||Need Help??|
cdherold has asked for the
wisdom of the Perl Monks concerning the following question:
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 and get the pixel intensity in row 20, column 450 (and for every other pixel in the image)?
Or where should I start?