[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.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Image-SIG