Advertisement

使用cv2实现帧差法检测出差异明显的图像,并读取mat中的像素值

阅读量:
复制代码
 #include "stdafx.h"

    
 #include <stdio.h>
    
 #include <stdlib.h>
    
 #include <iostream>
    
 #include <fstream>
    
 #include <opencv2/core/core.hpp>
    
 #include <opencv2/highgui/highgui.hpp>
    
 #include <opencv2/imgproc/imgproc.hpp>
    
 #include <opencv2/objdetect/objdetect.hpp>
    
 #include <opencv2/ml/ml.hpp>
    
 #include <string.h>
    
  
    
 #define IMAGENO 18456
    
 using namespace std;
    
 using namespace cv;
    
  
    
 int main(int argc,char * argv())
    
 {
    
 	string ImgName;
    
 	char OutName[100];
    
 	Mat Image,tempImage,previousImage

全部评论 (0)

还没有任何评论哟~