[Image-SIG] some picture manipulations I want to do
Nadav Horesh
nadavh at visionsense.com
Sun Aug 21 06:26:19 CEST 2005
You can get maximum flexibility by converting the image to Numeric/numarray arrays, do whatever you plan and convert the arrays back. The most efficient way is to use the fromstring/tostring methods of Image and numerray/Numeric modules to convey data between them.
Nadav.
-----Original Message-----
From: image-sig-bounces at python.org on behalf of Victor Reijs
Sent: Sat 20-Aug-05 15:24
To: image-sig at python.org
Cc:
Subject: [Image-SIG] some picture manipulations I want to do
Hello all of you,
I am now to this Image module, so my question is to get a flavor of
things;-).
I want to do the following:
. have a given picture (jpg or bmp)
. bring it into 32 bit integer or floating point space
. perform on each pixel a gamma (different for each RGB channel)
. perform a 3*3 color transform matrix on each pixel
. perform on each pixel a gamma of 2.2 (to bring it back to xRGB space)
. convert back to jpg or bmp (in 8 bit space I assume).
I have looked at http://www.pythonware.com/library/pil/handbook/ , but I
seem not to find the things I want. I am using PIL 1.1.5 with python 2.2
Thanks for your feedback.
All the best,
Victor
_______________________________________________
Image-SIG maillist - Image-SIG at python.org
http://mail.python.org/mailman/listinfo/image-sig
More information about the Image-SIG
mailing list