Is there a easy way to implement the segmentation of a binary image in python?
My 2d-"images" are numpy
arrays. The used values are 1.0
and 0.0
. I would require a list of all objects with the value 1.0
. Every black pixel is a pixel of an object. An object may contain many touching pixels with the value 1.0
.
I can use numpy
and also scipy
.
I already tried to iterate over all pixels and create sets of pixels and fill the new pixel in old sets (or create a new set). Unfortunately the implementation was poor, extremely buggy and also very slow.
Hopyfully somthing like this already exists or there is an easy way to do this?
Thank you very much