[Image-SIG] Help with PIL
Eric Germaneau
eric.germaneau at epfl.ch
Sat May 10 18:21:40 CEST 2008
Dear all,
I been trying to open a 32-bit (float) tif image with PIL without any
success.
I've tried:
fp = open("mytest32.tif", "rb")
im = Image.open(fp)
or
im = Image.fromstring("F", (512,512), "mytest32.tif", "raw", "F;32NF", 1,1)
or
im = Image.fromstring("F", (512,512), "mytest32.tif", "bit", 32,8,3 ,0,1)
I'm able to open an 8-bit image with
fp = open("mytest8.tif", "rb")
im = Image.open(fp)
Can you please explain to me hoe to proceed with an 32-bit image?
Whether you are interested, images (8-bit and 32-bit) are located here:
http://marie.epfl.ch/germanea/mytest8.tif
http://marie.epfl.ch/germanea/mytest32.tif
I thank you in advance,
Eric.
--
/Vivre dans la conscience du Tao
Se libérer du mental
<http://www.souffledor.fr/boutique/produits.php?cat=&id=2982>/---
Thierry Chaïbli ---
Dr. Éric Germaneau <http://dantian.free.fr>
Ecole polytechnique fédérale de Lausanne (EPFL)
FSB - IPMC
Laboratoire de Cristallographie (LCr) <http://lcr.epfl.ch>
BSP 518
CH-1015 Lausanne
Switzerland
eric.germaneau at epfl.ch <mailto:eric.germaneau at epfl.ch>
/Tel./: +41 (0)21 / 693 06 36
/Fax./: +41 (0)21 / 693 05 04
/msn/: aihaike at hotmail.com
/skype/: aihaike
/ Please consider the environment before printing this email.
Considérez svp l'environnement avant d'imprimer cet email. /
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20080510/9ff8d0fa/attachment.htm>
More information about the Image-SIG
mailing list