Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cv.h>
- #include <highgui.h>
- int main(int argc, char *argv[])
- {
- IplImage *img;
- img = cvLoadImage(argv[1], 0);
- cvSmooth(img, img, CV_GAUSSIAN, 7, 7, 0, 0);
- cvSaveImage("result.png", img);
- cvNamedWindow("Smoothing", 1);
- cvShowImage("Smoothing", img);
- cvWaitKey(-1); // wait forever for a key
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement