Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to overload a class

HI, I want to overload two methods (SimpleBlobDetectorImpl::detect and SimpleBlobDetectorImpl::findBlobs) and in the file features2d.hpp I have:

CV_WRAP virtual void detect( InputArray image,
                                 CV_OUT std::vector<KeyPoint>& keypoints,
                                 InputArray mask=noArray() );

and

 virtual void detect( InputArrayOfArrays images,
                         std::vector<std::vector<KeyPoint> >& keypoints,
                         InputArrayOfArrays masks=noArray() );

I add

virtual void detect(InputArray image, float& maxDistance,
        CV_OUT std::vector<KeyPoint>& keypoints,
        InputArray mask = noArray());

I get this during compilation:

Error   C2857   '#include' statement specified with the /YcE:/OpenCV/intatto/opencv-master/modules/features2d/src/precomp.hpp command-line option was not found in the source file  opencv_features2d_object    E:\OpenCV\intatto\build\modules\features2d\opencv_features2d_pch.cpp

Can someone help? Thanks.