Skip to content

minEnclosingTriangle() raises an error when input is vector<Point>  #20890

@sturkmen72

Description

@sturkmen72
  • 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;

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions