Re: image loading with GD

[email protected] Wed, 24 Dec 2003 23:40:39 +0000 (UTC)
Newsgroups gmane.comp.gnu.octave.sources
Message-ID <[email protected]>
Wow, great work! It would be great to just tie-in the GD library into
Octave-proper, instead of having to rely on the powerful-albeit-large
ImageMagick suite.

~Tomer


On Dec 24, 2003 at 2:38am, Greg Hamerly wrote:

ghamer >Date: Wed, 24 Dec 2003 02:38:30 -0600
ghamer >From: Greg Hamerly <[email protected]>
ghamer >To: [email protected]
ghamer >Subject: image loading with GD
ghamer >Resent-Date: Wed, 24 Dec 2003 09:13:22 -0600
ghamer >Resent-From: [email protected]
ghamer >Resent-To: octave sources mailing list
ghamer >    <[email protected]>
ghamer >
ghamer >Hi all,
ghamer >
ghamer >This weekend I wanted to load some images in to Octave to do some data
ghamer >analysis, but I found that it was difficult to do. I have searched a bit
ghamer >through the Octave mailing list archives but didn't find exactly what I
ghamer >was looking for.
ghamer >
ghamer >I wrote a small .oct file for using GD to load images of PNG, JPG, and XBM
ghamer >into Octave (since these are the supported types of GD). I tried to use
ghamer >Imlib as well, but I couldn't get it to work, so I stuck with GD.
ghamer >
ghamer >If you find this interesting, please try it out and let me know. There are
ghamer >many improvements that can be made, but for now it's simple and fast.
ghamer >
ghamer >The code is available at 
ghamer >http://www.cs.kuleuven.ac.be/~greg/software/gd_imgload.cc
ghamer >
ghamer >It can be compiled on a Linux system with GD installed with:
ghamer >"mkoctfile -lgd gd_imgload.cc"
ghamer >
ghamer >Thanks,
ghamer >- greg
ghamer >
ghamer >