Hi,

This gizmo -- https://www.dectris.com/pilatus_overview.html -- is a
wonderful X-ray detector with an awkward feature.  It saves its images
as signed 32 bit tiff files, which is a valid, if unusual, form of a
tiff file.

Here is an example of an image from this detector:
https://github.com/bruceravel/BLA-XANES/blob/master/share/example-s32.tif

It seems as though this does not get imported correctly:

  pdl> $a = rim 'example-s32.tif'
  pdl> imag $a
Use of uninitialized value $_[0] in pattern match (m//) at /usr/local/share/perl/5.14.2/PDL/Graphics/Simple.pm line 854.

Doing things like "p $a->dims" or "p $a->max" returns nothing.  So it
would seem that the read is silently failing.


My understanding is that PDL relies upon netpbm, which in turn relies
upon whatever version of libtiff it is compiled against.  So, it seems
that I would need to rebuild libtiff, then netpbm, then that part of
PDL.

Is there something I am missing?  Is there another way of reading an
s32 tiff directly?

(I am currently using https://metacpan.org/pod/Imager to preprocess
the tiff file.  It's a significant bottleneck.)

Thanks!
Bruce




--
 Bruce Ravel  ------------------------------------ [email protected]

 National Institute of Standards and Technology
 Synchrotron Science Group at NSLS --- Beamlines U7A, X24A, X23A2
 Building 535A
 Upton NY, 11973

 Homepage:    http://xafs.org/BruceRavel
 Software:    https://github.com/bruceravel

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

Reply via email to