- OpenCV => 3.4.16
- Operating System / Platform => Windows
- Compiler => MS Visual Studio
when running https://github.com/opencv/opencv/blob/3.4.16/samples/cpp/minarea.cpp#L46
i get
Assertion failed (mtype == type0 || (CV_MAT_CN(mtype) == CV_MAT_CN(type0) && ((1 << type0) & fixedDepthMask) != 0)) in cv::_OutputArray::create, file D:\GitHub\opencv\modules\core\src\matrix_wrap.cpp, line 1396
the code runs if vector<Point> points; changed to vector<Point2f> points;