What is an equivalent to the MATLAB function bwareafilt in Python? I need an output binary image that only contains the largest connected area of pixels.
Equivalent of 'bwareafilt' for Python
Equivalent of 'bwareafilt' for Python
|
Feb-05-2020, 10:32 PM
I'm not familiar with MatLab but it sounds like a blob analysis. I didn't find anything in PIL (or PILLOW) that does that although you could probably use its functions to make something similar.
Looks like there are similar tools in OpenCV you could use though: https://stackoverflow.com/questions/2348...-in-opencv https://makehardware.com/2016/05/19/blob...nd-opencv/
"So, brave knights, if you do doubt your courage or your strength, come no further, for death awaits you all with nasty, big, pointy teeth!" - Tim the Enchanter
|
|
Users browsing this thread: 1 Guest(s)