Skip to content

Commit 2a33f45

Browse files
committed
Fixed minor doc issue
1 parent d5323ce commit 2a33f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/py_tutorials/py_imgproc/py_histograms/py_histogram_equalization/py_histogram_equalization.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ img = cv2.imread('wiki.jpg',0)
3535
hist,bins = np.histogram(img.flatten(),256,[0,256])
3636

3737
cdf = hist.cumsum()
38-
cdf_normalized = cdf * hist.max()/ cdf.max()
38+
cdf_normalized = cdf * float(hist.max()) / cdf.max()
3939

4040
plt.plot(cdf_normalized, color = 'b')
4141
plt.hist(img.flatten(),256,[0,256], color = 'r')

0 commit comments

Comments
 (0)