logo       

Re: 16-bit tiff output: msg#00048

Subject: Re: 16-bit tiff output
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
Perldl@xxxxxxxxxxxxxxx
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe