get NaN-Values from SimpleBlobDetector::findBlobs (Bug #2927)


Added by Daniel Brandes almost 12 years ago. Updated almost 12 years ago.


Status:Done Start date:2013-03-28
Priority:Normal Due date:
Assignee:Maria Dimashova % Done:

0%

Category:features2d
Target version:3.0 Estimated time:0.10 hour
Affected version:2.4.3 Operating System:
Difficulty: HW Platform:
Pull request:

Description

if the contours borders an empty area, the Moments (moms.m00) gets 0.0 and center gets infinite values. To fix this, I added a condition in line 243 and line 270 (see appendix). I think, it is ok to discart this defect values. Could anyone apply this in trunk?


blobdetector.cpp (12.3 kB) Daniel Brandes, 2013-03-28 12:23 pm


Associated revisions

Revision 0d16a9be
Added by Gurpinder Sandhu almost 12 years ago

In response to Bug #2927

change to reject contours with moms.m00 = 0.0

Revision a0816c6d
Added by Alexander Alekhin over 10 years ago

Merge pull request #2927 from ilya-lavrenov:tapi_lut

History

Updated by Gurpinder Sandhu almost 12 years ago

I have sent a pull request for this

Updated by Andrey Kamaev almost 12 years ago

Fix is pushed to master

  • Target version set to 3.0
  • Status changed from Open to Done

Also available in: Atom PDF