Am I trying to find a similar or equivalent function to the Matlabs Bwareaopen " function in OpenCV?
In MatLab, Bwareaopen (Image, P) removes from the binary image all connected components (objects) that have less than P pixels.
In my 1-channel image, I just want to remove small areas that are not part of the larger ones? Is there a trivial way to solve this problem?
source
share