[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: software for generating image files from gridded arrays of data?



Hi all,

Perl+ImageMagick can still do this (use Image::Magick).

Attached is a *very* dirty hack that I used to threshold an image according to 
my own strange criteria. It actually creates a new black & white image and 
sets each pixel individually within that image. 

So that's how you can set a pixel... I'm doing it based on the data in another 
image but there's no reason why you couldn't do it from your own data.

This, perhaps, is a useful example for you.

good luck!

Stuart

PS in the example you can see that I've used xc: and png: to specify the file 
type, but I think there's also a raw: type that you might be able to use. 
YMMV.

-- 
Stuart Prescott                 www.nanoNANOnano.net

Attachment: areacalc.pl
Description: Perl program


Reply to: