[Image-SIG] Problem calculating the mean after application of log transform

tadepalli venkata chandra shekhar chandutadepalli at gmail.com
Thu Nov 8 06:19:13 CET 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20121108/56984bb4/attachment-0001.html>


More information about the Image-SIG mailing list