提交 98f090e3 编写于 作者: V Vadim Pisarevsky

fixed bug with crash in HoughCircles & HoughLines when no circles/lines are detected (ticket #1066)

上级 7d350280
......@@ -1092,7 +1092,7 @@ const int STORAGE_SIZE = 1 << 12;
static void seqToMat(const CvSeq* seq, OutputArray& _arr)
{
if( seq )
if( seq && seq->total > 0 )
{
_arr.create(1, seq->total, seq->flags, -1, true);
Mat arr = _arr.getMat();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册