I write a function using Mat_ type as an input, the syntax of this function is like this:
#include<iostream>
#include"opencv2\opencv.hpp"
using namespace std;
using namespace cv;
Mat_<double> histcost(Mat_<double> BH1, Mat_<double> BH2) {
Mat_<double> output;
...
return output;
}
But when I tried to write header file of this function:
#pragma once
extern Mat_<double> histcost(Mat_<double> BH1, Mat_<double> BH2);
It gives me the error: Mat_ is not a template.
I am not very familiar with function management and I'd really appreciate it if anyone can help!