Commit 98f090e3 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

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

parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment