Friday, March 30, 2012

OpenCV Exercises in Python | Beechtree Tech

OpenCV Exercises in Python | Beechtree Tech: "  gray = cvCreateImage(cvSize(cvGetSize(img).width, cvGetSize(img).height), IPL_DEPTH_8U, 1)
    cvCvtColor(img,gray,CV_BGR2GRAY)

    if (gray.nChannels != 1):
        return False

    out = cvCreateImage(cvSize(cvGetSize(gray).width, cvGetSize(gray).height), IPL_DEPTH_8U, 1)
    cvCanny(gray, out, lowThresh, highThresh, aperature)
    return out
 "

'via Blog this'