PDL folks,

As part of a proposal effort I just hacked Daniel Vollmer's wavelet compression library into a cheesy PDL module. Vollmer's code is particularly nice because it allows compression of multiple bitplanes (read: hyperspectral images), with specified weighting of the importance of each bitplane, and because it works with 16-bit data and is therefore useful for scientific images as well as snapshots.

The module defines two entry points: PDL::wvcomp, which accepts an image (up to three dimensions, with the 2 dim running across R/G/B or what-have-you) and a number of bits per pixel to which the thing should be compressed, and returns a greatly compressed glom of data as a 1-D PDL; and PDL::wvexp, which accepts a greatly compressed glom of data and returns an approximation of the original image.

Daniel has released the work under a gzip license, which is more permissive than the Artistic license we use for PDL. I think it is also compatible with it. If there is interest, I'll be happy to clean it up and either put it in CPAN or in the PDL distribution (though not, of course, till after our proposal goes in). What sayeth the community?

Cheers,
Craig


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

Reply via email to