2013年6月6日 星期四

HW02

//cvCvtColor彩色轉灰階
cvCvtColor( frame, gray, CV_BGR2GRAY);

//cvThreshold灰階轉黑白
cvThreshold( gray, bw, 63, 255, CV_THRESH_BINARY );

//canny邊緣檢測
cvCanny(gray, pCannyImg, 50, 150, 3);

把圖像做各種變化

沒有留言:

張貼留言