Smoothing image
Hey, I'am "newbie" about OpenCV. Can you tell me what's wrong in the code?
// SmoothingImage.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "highgui.h"
#include "cv.h"
void example(IplImage* img);
int main( int argc, char** argv)
{
cvNamedWindow ("example4-in", CV_WINDOW_AUTOSIZE);
cvNamedWindow ("example4-gaussian", CV_WINDOW_AUTOSIZE);
IplImage* img = cvLoadImage("Desert.jpg");
cvShowImage ("example4-in", img);
IplImage* out = cvCreateImage(
cvGetSize(img),
IPL_DEPTH_8U,
3
);
cvSmooth(img, out, CV_GAUSSIAN, (75, 75),0);
cvShowImage("example4-gaussian", out);
cvReleaseImage(&out);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("example4-in");
cvDestroyWindow("example4-gaussian");
}
Do you have any troubles with this?
Which version of OpenCV you are using? Did it at least compiled?
If anyone came looking for a C++ smoothing question using OpenCV 3.0.0, maybe you can find what you need here: http://bit.ly/1tYZjsq