Problem calculating the mean after application of log transform
tadepalli venkata chandra shekhar <[email protected]> Thu, 8 Nov 2012 10:49:12 +0530
| Newsgroups | gmane.comp.python.image |
|---|---|
| Message-ID | <CAJYf95viq60hJ1XxYNoeOCxVX374Ee2i9qQuTZ4AkZ2GrkfNoQ@mail.gmail.com> |
--===============1265742670==
Content-Type: multipart/alternative; boundary=047d7bea32dab9fa0e04cdf4f900
--047d7bea32dab9fa0e04cdf4f900
Content-Type: text/plain; charset=ISO-8859-1
Respected sir/ madam
I have recently started coding for my PG
project in python imaging library. I encountered a problem of calculating
mean of a gray scale image after taking the log transform on the image. I
am putting the code below.
Import Image
import ImageOps
from numpy import *
im = Image.open('File name')
im_gray = ImageOps.grayscale(imj)
im_gray_mean = meanj(im_gray)
Now the value in im_gray_mean is showing to be -inf. I want this to be some
valid numeric data. Hope to hear from you at the earliest.
Yours sincerely
T.V.Chandra shekar
--047d7bea32dab9fa0e04cdf4f900
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Respected sir/ madam<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 I have recently started codin=
g for my PG project in python imaging library. I encountered a problem of c=
alculating mean of a gray scale image after taking the log transform on the=
image. I am putting the code below.<br>
<br>Import Image<br>import ImageOps<br>from numpy import *<br><br>im =3D Im=
age.open('File name')<br>im_gray =3D ImageOps.grayscale(imj)<br>im_=
gray_mean =3D meanj(im_gray)<br><br>Now the value in im_gray_mean is showin=
g to be -inf. I want this to be some valid numeric data. Hope to hear from =
you at the earliest.<br>
<br>Yours sincerely<br>T.V.Chandra shekar<br>
--047d7bea32dab9fa0e04cdf4f900--
--===============1265742670==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Image-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/image-sig
--===============1265742670==--