From the wpic documentation: "The data written out will be scaled to 
byte if input is of type float/double."  If you don't want it to scale, 
cast it to a short or ushort before writing it out.  Do a 'help 
datatype_conversions' from the perldl shell to read more about data 
types in PDL.

Derek

Florin A. wrote:
> Hello,
>
> I'm writing a PDL to a TIFF file with wpic like so:
>
> $thepdl->wpic("test7.tif");
>
> The final TIFF stretches all my values to a range between 0 and 255.
> How do I tell it not to stretch the values?
>
> Thanks,
>
> Florin
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>   


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

Reply via email to