connectedpixels
connectedpixels(data, labels, threshold, verbose, con8)
Categories: Peak labelling
Description
Determines which pixels in data are above the user supplied threshold and assigns them into connected objects which are output in labels. Connectivity is 3x3 box (8) by default and reduces to a +(4) is con8==0
Parameters
| Name | Description |
|---|---|
con8 |
8-connected (1) or 4-connected (0). |
data |
Input float32 2D. |
labels |
Output int32 labels. |
threshold |
Threshold. |
verbose |
Print diagnostics. |
Constraints
data.ndim == 2data.slow_axis == 0( labels.format == 'i' or labels.format == 'l' )labels.n == data.n
Overloads
| C function | Condition |
|---|---|
connectedpixels_u32 |
always |
connectedpixels_u16 |
always |
connectedpixels_u8 |
always |
connectedpixels |
always |
Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)