Skip to content

sparse_connectedpixels

sparse_connectedpixels(v, i, j, threshold, labels)

Categories: Peak labelling, Sparse

Description

runs the connectedpixels algorithm on a sparse image using a supplied threshold putting labels into labels array and returning the number of blobs found

Parameters

Name Description
i Rows (uint16).
j Cols (uint16).
labels Output labels (int32).
threshold Threshold.
v Values (float32).

Constraints

  • v.slow_axis == 0
  • i.format == 'H' or i.itemsize == 2
  • j.format == 'H' or j.itemsize == 2
  • j.n == i.n
  • v.n == i.n
  • ( labels.format == 'i' or labels.format == 'l' )
  • labels.n == i.n

Overloads

C function Condition
sparse_connectedpixels_u32 always
sparse_connectedpixels_u16 always
sparse_connectedpixels_u8 always
sparse_connectedpixels always

Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)