'**SUMMARY**
Return a numpy array of the 1D histogram of intensity for pixels in the image
Single parameter is how many "bins" to have.
**PARAMETERS**
* *numbins* - An interger number of bins in a histogram.
**RETURNS**
A list of histogram bin values.
**EXAMPLE**
>>> img = Image(\'lenna\')
>>> hist = img.histogram()
**SEE ALSO**
:py:meth:`hueHistogram`'

def histogram(self, numbins=50):

    gray = self._getGrayscaleBitmap()
    (hist, bin_edges) = np.histogram(np.asarray(cv.GetMat(gray)), bins=numbins)
    return hist.tolist()
