Skip to content

localmaxlabel

localmaxlabel(data, labels, wrk)

Categories: Peak labelling

Description

assigns a label for each pixel so they are grouped to the local maximum. Equal values choose to assign towards the earlier value in memory. cpu arg (1)0=C, (1)1=SSE2, (1)2=AVX2; if > 9 prints timing

Parameters

Name Description
data Input float32 2D.
labels Output int32 labels.
wrk Temp uint8 workspace.

Constraints

  • data.ndim == 2
  • data.slow_axis == 0
  • ( labels.format == 'i' or labels.format == 'l' )
  • labels.n == data.n
  • wrk.format == 'B' or wrk.format == 'b'
  • wrk.n == data.n

Overloads

C function Condition
localmaxlabel_u32 always
localmaxlabel_u16 always
localmaxlabel_u8 always
localmaxlabel always

Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)