Hi, I'm new to openCV, can't find what is the way to do basic segmentation on a binary image and get segments (with black pixels) sizes, then delete small segments from image with given threshold. The example image is below
1 | initial version |
Hi, I'm new to openCV, can't find what is the way to do basic segmentation on a binary image and get segments (with black pixels) sizes, then delete small segments from image with given threshold. The example image is below