I'm on Chapter 1 of Solem's book. The following function definition needs
to be added to imtools.py: [I did paste this I think in my first email].
import os
from numpy import *
def histeq(im,nbr_bins=256):
""" Histogram equalization of a grayscale image. """
# get image histogram
imhist,bins = hi
*Hi all,
The function histogram is supposed to come from the numpy module; at* *
least that's the case on my computer (I have numpy 1.6.2 for Python
2.7):
>>> from numpy import ** *
>>> histogram
Maybe something is wrong with Unaiza's version of numpy.* *
Kal
*Yes it's supposed to come from n
* Where is the histogram() function from? Is it in imtools.py as well?
*
It is a NumPY function.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Hi all,
I am following Jan Erik Solem's book "Programming Computer Vision with
Python" and I'm just on the first chapter. The book asked us to create a
file imtools.py and put down helpful functions there, which we can just
call later.
There is a function created for histogram equalization of ima