On 4/20/2012 5:27 AM, Ingo Schmid wrote:
Hi,
could you please confirm, looking at Types.pm, currently only the
following data types are supported:
Byte (unsigned) (8 bit)
signed and unsigned short 16bit
signed long 32 bit
signed longlong 64 bit
Correct?
Yes
I'm working on an IO::Nifti module.
How should I handle complex numbers? Use PDL::Complex or as 2 real
piddles for better compatibility?
For flexibility I usually try to implement
IO with a low-level ("raw") part that brings
the data in as simply as possible (keeping the
piddle data close to the actual input data or,
if you are using niftilib, as close as to that
input format as possible). Once you have that
direct layer, higher level features can be added
for the final user interface.
Some thoughts:
* You could have an option to select either
output format and let the users decide
* I see there are a number of other niftilib
based IO interfaces for other languages,
what choices did they make?
* What are the compatibility issues to which
you are referring?
* PDL complex support has not seen a lot of
development but that is directly related to
the number of users and developers working with
complex data.
* If you are processing complex data, do you
do any FFTs? The PDL FFTW bindings are for
FFTW version 2 while the FFTW library has been
version 3 for some time now.
--Chris
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl