1
目前我正在使用iplimage的高斯模糊。 这样,如何知道iplimage的高斯模糊系数?
# include "stdio.h"
# include "highgui.h"
# include "cv.h"
int main(int argc, char** argv) {
IplImage* img = 0;
IplImage* out = 0;
if(argc < 2) {
printf("Usage: Accepts one image as argument\n");
exit(EXIT_SUCCESS);
}
img = cvLoadImage(argv[1]);
if(!img) {
printf("Error loading image file %s\n", argv[1]);
exit(EXIT_SUCCESS);
}
out = cvCreateImage(cvGetSize(img), IPL_DEPTH_8U, 3);
cvSmooth(img, out, CV_GAUSSIAN, 3, 3);
cvReleaseImage(&img);
cvReleaseImage(&out);
cvDestroyWindow("Example1");
cvDestroyWindow("Output");
return EXIT_SUCCESS;
}
但我不知道是什么系数在IplImage结构的高斯模糊使用。
我怎么能知道是IplImage的高斯模糊系数?
www.google.com,输入 “cvSmooth” – Piglet