5.3.4.26. Function CCL_LSL_apply

5.3.4.26.1. Function Documentation

uint32_t CCL_LSL_apply(CCL_data_t *CCL_data, const uint8_t **img, uint32_t **labels)

Compute the Light Speed Labeling (LSL) algorithm.

Parameters
  • CCL_data – Inner data required to perform the LSL.

  • img – Input binary image (2D array \([i1 - i0 + 1][j1 - j0 + 1]\), \(\{0,1\}\) has to be coded as \(\{0,255\}\)).

  • labels – Output labels (2D array \([i1 - i0 + 1][j1 - j0 + 1]\). The labels are in \([1;2^{32} -1]\) and 0 value means no label).

Returns

Number of labels.