一.图片读取保存 (1)读取 clear all [filename,pathname]=uigetfile({'*.jpg';'*.bmp';'*.gif'},'选择图片'); if isequal(filename,0) disp('Users Selected Canceled'); else str=[pathname filename]; im = imread(str); imshow(im); end (2)保存 clear all x=0:0.01:2*pi; plot(x,si
/** * @file main-opencv.cpp * @date July 2014 * @brief An exemplative main file for the use of ViBe and OpenCV */ //#include <opencv2\core\core.hpp> #include "vibe-background-sequential.h" using namespace cv; using namespace std; ; // 舍去面积