Ask Your Question

Revision history [back]

Get segments sizes in image and remove small segments

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 image description