Ask Your Question

Revision history [back]

[ask] smoothing image

// 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"); }

hey, I'am "newbie" about opencv. Can you tell me what's wrong about that code? because in that code there are error.. thanks before..

click to hide/show revision 2
No.2 Revision

[ask] smoothing 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"

include "stdafx.h"

include "highgui.h"

include "cv.h"

void example(IplImage* img);

img);

int main( int argc, char* char** argv) { cvNamedWindow ("example4-in", CV_WINDOW_AUTOSIZE); cvNamedWindow ("example4-gaussian", CV_WINDOW_AUTOSIZE); IplImage 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"); }

hey, I'am "newbie" about opencv. Can you tell me what's wrong about that code? because in that code there are error.. thanks before..

}