Merge pull request #4215 from renatoGarcia:master

This commit is contained in:
Vadim Pisarevsky 2015-07-22 10:55:23 +00:00
commit f53d3de73e

View File

@ -83,7 +83,7 @@ class App(object):
hsv_roi = hsv[y0:y1, x0:x1]
mask_roi = mask[y0:y1, x0:x1]
hist = cv2.calcHist( [hsv_roi], [0], mask_roi, [16], [0, 180] )
cv2.normalize(hist, hist, 0, 255, cv2.NORM_MINMAX);
cv2.normalize(hist, hist, 0, 255, cv2.NORM_MINMAX)
self.hist = hist.reshape(-1)
self.show_hist()