pub fn regions<OutType>(
input: &Array<bool>,
conn: Connectivity
) -> Array<OutType> where
OutType: HasAfEnum + RealNumber,
Find blobs in given image.
Given a binary image (with zero representing background pixels), regions computes a floating point image where each connected component is labeled from 1 to N, the total number of components in the image.
A component is defined as one or more nonzero pixels that are connected by the specified connectivity (either Connectivity::FOUR
or Connectivity::EIGHT
) in two dimensions.
input
is the input imageconn
can take one of the values of ConnectivityArray with labels indicating different regions
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4