The current rpic/wpic framework does not fully support 16-bit
image formats.  If you convert your piddle to a ushort array and
then wpic() it to a tiff file, you'll get a 16-bit TIFF file.  When you
try to rpic() it back, you get an incorrect 8-bit image back.

I've entered this as a bug #1850913 on the PDL sourceforge page
http://sourceforge.net/tracker/?group_id=612&atid=100612

Thanks for reporting the problem.

--Chris


János Gonzales wrote:
Hello,
This is probably really easy, but I'm a newbie so I'm not sure how to
do it.   I'm trying to output a 16-bit Tiff, but all I get is an 8 bit
tiff.
Here's my pseudo code:


use PDL;
use PDL::NiceSlice;
use PDL::IO::Pic;

$blank_slate = zeroes(1800,900);

.......in here i add values to the blank_slate piddle from 0 to about 3000

$blank_slate->wpic("test.tif");


So, if I look at test.tiff  it's 1800x900 pixels, but the max value is
255 and not 3000.  If it was a 16-bit tiff it could accomodate this
value.  I'm running this on Windows XP, and I have the netpbm binaries
installed. (I noticed my wpic command calls pnmtotiff )

Any ideas?

Thanks much,
Janos

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




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

Reply via email to