jjzjj

frameKeypoints

全部标签

c++ - Windows 上的堆损坏,但 Linux 上没有

下面是一些简单的OpenCV代码,用于从视频文件创建帧并在帧上运行SURF特征检测器和提取器。当我在Linux和OSX上运行此代码时它运行良好,但是在Windows上我在两个注释行上收到堆损坏错误。VideoCapturecapture(vidFilename.c_str());Matframe;capture>>frame;SurfFeatureDetector*detector=newSurfFeatureDetector(minHessian);vectorframeKeypoints;detector->detect(frame,frameKeypoints);delete(d