红外线目标点提取
做跟踪算法实验
原理:通过提取R通道并阈值二值化,以分割红点
/***** 红外线点目标提取 *****/
#include "StdAfx.h"
#include "stdafx.h"
#include "core/core.hpp"
#include "highgui/highgui.hpp"
#include "imgproc/imgproc.hpp"
#include "iostream"
#include <iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/nonfree/nonfree.hpp>
#include <time.h>
#include <windows.h>
using namespace std;
using namespace cv;
int main(int argc, char** argv){
cv::Mat image;
image = cv::imread("./6.jpg");