int main( int argc, char** argv ) { IplImage* img = cvLoadImage( argv[1] ); cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE ); saturate_sv(img); cvShowImage("Example1", img ); cvWaitKey(0); cvReleaseImage( &img ); cvDestroyWindow("Example1"); }
int main( int argc, char** argv ) { // 读取图像和创建窗体 IplImage* img = cvLoadImage( IMG1 ); cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE ); // 处理图像 saturate_sv(img); // 后续工作 cvShowImage("Example1", img ); cvWaitKey(0); cvReleaseImage( &img ); cvDestroyWindow("Example1"); }