Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //where img and colorImg are of type ofxCvColorImage and contain 1 frame of video
- IplImage* srcImg = colorImg.getCvImage();
- IplImage* newImg = cvCreateImage(cvGetSize(srcImg), srcImg->depth, srcImg->nChannels);
- cvSmooth(srcImg, newImg, CV_MEDIAN, 7,0,0,0);
- img.setFromPixels((unsigned char*)newImg->imageData,newImg->width,newImg->height);
- img.draw(360,20);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement