"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "IO/Pnm/Pic.pm" between
PDL-2.074.tar.gz and PDL-2.075.tar.gz

About: PDL (Perl Data Language) aims to turn perl into an efficient numerical language for scientific computing (similar to IDL and MatLab).

Pic.pm  (PDL-2.074):Pic.pm  (PDL-2.075)
skipping to change at line 484 skipping to change at line 484
Read images in most formats, with improved RGB handling. Read images in most formats, with improved RGB handling.
You specify a filename and get back a PDL with the image data in it. You specify a filename and get back a PDL with the image data in it.
Any PNM handled format or FITS will work. In the second form, $x is an Any PNM handled format or FITS will work. In the second form, $x is an
existing PDL that gets loaded with the image data. existing PDL that gets loaded with the image data.
If the image is in one of the standard RGB formats, then you get back If the image is in one of the standard RGB formats, then you get back
data in (<X>,<Y>,<RGB-index>) format -- that is to say, the third dim data in (<X>,<Y>,<RGB-index>) format -- that is to say, the third dim
contains the color information. That allows you to do simple indexing contains the color information. That allows you to do simple indexing
into the image without knowing whether it is color or not -- if present, into the image without knowing whether it is color or not -- if present,
the RGB information is silently threaded over. (Contrast L</rpic>, which the RGB information is silently broadcasted over. (Contrast L</rpic>, which
munges the information by putting the RGB index in the 0th dim, screwing munges the information by putting the RGB index in the 0th dim, screwing
up subsequent threading operations). up subsequent broadcasting operations).
If the image is in FITS format, then you get the data back in exactly If the image is in FITS format, then you get the data back in exactly
the same order as in the file itself. the same order as in the file itself.
Images with a ".Z" or ".gz" extension are assumed to be compressed with Images with a ".Z" or ".gz" extension are assumed to be compressed with
UNIX L<"compress"|compress> or L<"gzip"|gzip>, respecetively, and are UNIX L<"compress"|compress> or L<"gzip"|gzip>, respecetively, and are
automatically uncompressed before reading. automatically uncompressed before reading.
OPTIONS OPTIONS
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)