Creating histogram at each pixel location considering the window around it in pythonn
===

I have to create local histograms at each pixel considering some neighboring window of the pixel. 

         numpy.histogram(image,bins=256)

creates the histogram of the whole image. I could give it a specific part of the image but I don't want to use the loops.

Thanks a lot.