machinevision-toolbox-python icon indicating copy to clipboard operation
machinevision-toolbox-python copied to clipboard

Fix blob error for single pixels

Open Tjeard0 opened this issue 7 months ago • 4 comments

Some blobs were being created that were one pixel in size causing the code:

blob.uc = M.m10 / M.m00

for the centroid to throw a division by zero error.

Added in code to prevent the blob being appended when the value of m00 is zero

Tjeard0 avatar Nov 26 '23 07:11 Tjeard0