Skip to content

tosparse_u16

tosparse_u16(img, msk, row, col, val, cut)

Categories: Sparse

Description

stores pixels from img into row/col/val. msk determines whether pixels are masked (e.g. eiger mask) returns the number of pixels found

Parameters

Name Description
col Output cols.
cut Threshold.
img Input uint16 2D.
msk Mask (uint8, 0=include).
row Output rows.
val Output values.

Constraints

  • img.format == 'H' or img.itemsize == 2
  • img.ndim == 2
  • img.slow_axis == 0
  • msk.format == 'B' or msk.format == 'b' or msk.format == '?'
  • msk.n == img.n
  • row.format == 'H' or row.itemsize == 2
  • col.format == 'H' or col.itemsize == 2
  • val.format == 'H' or val.itemsize == 2

Overloads

C function Condition
tosparse_u16 always

Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)