CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Reading the pixels from an image


New User

May 21, 2007, 5:11 AM

Post #1 of 2 (223 views)
Reading the pixels from an image Can't Post

I am working on a program for hand-written digit recognition. I am trying to do this in Perl, but I don't know how to get the pixels from an image. In fact I haven't worked with any perl GUI before at all. I would be grateful if you could tell me how to get the libraries I need (if any) and give me a simple example of a code that stores an image as a matrix of pixels (each element being a number denoting the color of the corresponding pixel).

(for Java I found a code that does this on the net, using PixelGrabber)



May 21, 2007, 10:25 AM

Post #2 of 2 (221 views)
Re: [supernova] Reading the pixels from an image [In reply to] Can't Post

I think you can use the GD module and the getPixel() method for doing that.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives