Lines Matching refs:cv2
18 import cv2
30 hist_item = cv2.calcHist([im],[ch],None,[256],[0,256])
31 cv2.normalize(hist_item,hist_item,0,255,cv2.NORM_MINMAX)
34 cv2.polylines(h,[pts],False,col)
43 im = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY)
44 hist_item = cv2.calcHist([im],[0],None,[256],[0,256])
45 cv2.normalize(hist_item,hist_item,0,255,cv2.NORM_MINMAX)
48 cv2.line(h,(x,0),(x,y),(255,255,255))
63 im = cv2.imread(fname)
69 gray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY)
82 cv2.imshow('image',im)
84 k = cv2.waitKey(0)&0xFF
87 cv2.imshow('histogram',curve)
88 cv2.imshow('image',im)
93 cv2.imshow('histogram',lines)
94 cv2.imshow('image',gray)
97 equ = cv2.equalizeHist(gray)
99 cv2.imshow('histogram',lines)
100 cv2.imshow('image',equ)
104 cv2.imshow('histogram',curve)
105 cv2.imshow('image',gray)
108 norm = cv2.normalize(gray,alpha = 0,beta = 255,norm_type = cv2.NORM_MINMAX)
110 cv2.imshow('histogram',lines)
111 cv2.imshow('image',norm)
114 cv2.destroyAllWindows()
116 cv2.destroyAllWindows()