Find blobs in given image. More...
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 4-way(AF_CONNECTIVITY_4) or 8-way(AF_CONNECTIVITY_8)) in two dimensions.
An example input and output for 8-connectivity
The default connectivity is AF_CONNECTIVITY_4.
◆ af_regions()C Interface for regions in an image.
C++ Interface for getting regions in an image.
Below given are sample input and output for each type of connectivity value for type
type
== AF_CONNECTIVITY_8 Example for type
== AF_CONNECTIVITY_4
A multi dimensional data container.
@ b8
8-bit boolean values
@ AF_CONNECTIVITY_8
Connectivity includes 4-connectivity neigbors and also those on Northeast, Northwest,...
AFAPI array regions(const array &in, const af::connectivity connectivity=AF_CONNECTIVITY_4, const dtype type=f32)
C++ Interface for getting regions in an image.
@ AF_CONNECTIVITY_4
Connectivity includes neighbors, North, East, South and West of current pixel.
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