SimpleBlobDetector doesn't check when moment m00 is equal to zero (Bug #4321)
Description
In SimpleBlobDetector there is an exception when there moment m00 is equal to 0.
When SimpleBlobDetector is used at line 270 it is written
center.location = Point2d(moms.m10 / moms.m00, moms.m01 / moms.m00);
There is no check about m00 here.
There is check at line 290 but it's too late. This check shoulb at lne 269
History
Updated by Vadim Pisarevsky almost 10 years ago
thanks for the patch! it has been integrated
- Status changed from New to Done
- Target version set to 3.0