摘要:
[代码]import cvif __name__ == '__main__': im = cv.LoadImage( "c:\\3.jpg", cv.CV_LOAD_IMAGE_COLOR) gray = cv.CreateImage((im.width, im.height), 8, 1) cv.CvtColor(im, gray, cv.CV_BGR2GRAY) w = gray.width h = gray.height x0 = 0; x1 = 0; y0 = 0; y1 = 0; for x in range(w) : for y in range(h) : val = cv.Ge 阅读全文
摘要:
[代码] 阅读全文