Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++
#include <opencv\cv.h>
#include <opencv\highgui.h>
using namespace cv;

void smooth( IplImage* image)
{
	IplImage* out = cvCreateImage( cvGetSize(image), IPL_DEPTH_8U, 3 );
	cvSmooth( image, out, CV_GAUSSIAN, 15, 15 );
	cvShowImage( "out", out );
	cvReleaseImage( &out );
}

int main( int argc, char** argv )
{
	
	IplImage * img;
	img = cvLoadImage("a.jpg");
	cvShowImage("second", img);
	smooth( img );

	cvWaitKey();

	cvDestroyWindow("second");
	cvReleaseImage(&img);

	return 0;
}
Posted
Comments
Rage 10-Mar-14 9:16am    
This looks like a good start. Have your tried further ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900