I'm trying to follow along with the OpenCV tutorial, found here. Part of the tutorial is to create a SURF feature detector.
Unlike the tutorial, my code is in a header file, like this:
class Img {
Mat mat;
int minHessian = 400;
SurfFeatureDetector detector(minHessian);
public:
...
}
The error I'm getting occurs on the line
SurfFeatureDetector detector(minHessian);
and the error is:
Unknown type name 'minHessian'
When I do not put this in a separate class, the compiler does not complain. I have also checked and I have imported the required libraries.
Can anybody tell me what the error is, and how to fix it?