摘要: [代码]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 阅读全文
posted @ 2011-01-09 23:36 Alex.ren 阅读(853) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2011-01-09 22:43 Alex.ren 阅读(939) 评论(0) 推荐(0) 编辑