[Image-SIG] Question about file decoder
Volker Dobler
dobler@interaxia.ch
Mon, 3 Mar 2003 19:55:28 +0100
Hello,
I wrote a file decoder for a simple image format
(header followed by 16bit data) by subclassing
ImageFile, providing a _open() method and using
a the apropriate raw decodeer. It works.
Now my question: The 16bit data is scaled by a
factor and should be rescaled to the "real" values
during reading. The scaling factor can be found
in the header and is extracted during _open().
How can I do this rescaling during the reading of=20
the file. =20
Of course a can save the scaling factor and do a
img.point( lambda z: z*scaling + 0 ) afterwards,
but I want to implement this step into the reading
of the data.
Any suggestions are welcome.
Thanks
Volker
--
Dr. Volker Dobler e-mail: volker.dobler at interaxia.ch
Interaxia AG phone: ++41 (0)41 747 06 51
Hinterergstr. 17, fax: ++41 (0)41 747 06 61
CH-6330 Cham/Zug, Switzerland
---
Ausgehende Mail ist zertifiziert virenfrei.
=DCberpr=FCft durch AVG Antivirus System (http://www.grisoft.com/de).
Version: 6.0.394 / Virendatenbank: 224 - Erstellungsdatum: 03.10.02
=20