I want to use edge detection algorithms from opencv library. Here is a piece of python code:
from opencv.cv import * from opencv.highgui import * img = cvLoadIm
You can convert an image to grayscale in a single step instead of two:
gray = cv.CreateMat(img.height, img.width, cv.CV_8UC1) cv.CvtColor(img, gray, cv.CV_BGR2GRAY)