On Sun, Aug 29, 2010 at 12:54 AM, P Kishor <[email protected]> wrote:
> I have the following piddle
>
> pdl> $a = ones(5, 4)->random
> pdl> p $a
> [
>  [ 0.45599306  0.67084488   0.7872064  0.80197957  0.31240432]
>  [ 0.20072609  0.02941865  0.86771778  0.16045055  0.11242522]
>  [0.017854221  0.20779644  0.74310164  0.41471134  0.54152694]
>  [ 0.85162429 0.087391935 0.046048242  0.92007438  0.15784042]
> ]
>
> What is the most straight-forward way to create an image whose every
> pixel is colored with some factor based on each of the above values?
>
> I guess, I am seeking recommendations for image IO modules that would
> accomplish the above. There are a bunch of Graphics and IO modules,
> for example, PDL::IO::Pic,

Hmmm... PDL::IO::Pic is giving me a bit of heartburn via NetPBM. I
tried the following

pdl> wim($a, 'foo.gif')
PDL: wpnm: pbmconverter error: sh: ppmtogif: command not found

So, I downloaded NetPBM

svn checkout http://netpbm.svn.sourceforge.net/svnroot/netpbm/stable netpbm

and tried building the above. On running make, I got a bunch of errors
like so that ended in make error

             -O3 -ffast-math  -pedantic -fno-common -Wall
-Wno-uninitialized -Wmissing-declarations -Wimplicit -Wwrite-strings
-Wmissing-prototypes -Wundef   -o pnmtopng.o pnmtopng.c
pnmtopng.c: In function ‘makePngLine’:
pnmtopng.c:2112: warning: ‘color_type’ is deprecated (declared at
/usr/local/include/libpng14/png.h:653)
pnmtopng.c:2113: warning: ‘color_type’ is deprecated (declared at
/usr/local/include/libpng14/png.h:653)
pnmtopng.c:2117: warning: ‘color_type’ is deprecated (declared at
/usr/local/include/libpng14/png.h:653)
pnmtopng.c:2124: warning: ‘c
..
make[2]: *** [pngtopnm.o] Error 1
make[1]: *** [other/all] Error 2
make: *** [converter/all] Error 2

Why? The problem seems to be stemming from my libpng, which I
installed successfully not too long ago.

Any ideas?

> PDL::IO::GD, and the many PDL::Graphics::*
> modules. Where am I looking to start?
>
> I want to output PNGs and possibly Tiffs (geotiffs).
>
>
>



-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to