Lines Matching full:histogram
117 diff_histogram = diff_image.histogram()
173 whitediff_image.histogram()[VALUES_PER_BAND - 1])
281 def _max_per_band(histogram):
282 """Given the histogram of an image, return the maximum value of each band
286 histogram: PIL histogram
288 Returns the maximum value of each band within the image histogram, as a list.
291 assert(len(histogram) % VALUES_PER_BAND == 0)
292 num_bands = len(histogram) / VALUES_PER_BAND
295 # the 'R' band makes up indices 0-255 in the histogram,
296 # the 'G' band makes up indices 256-511 in the histogram,
302 if histogram[index] > 0: