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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



supernova
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)

Mihai


KevinR
Veteran


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.

http://search.cpan.org/~lds/GD-2.35/GD.pm
-------------------------------------------------

 
 


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

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