Skip to content

make_clean_mask

make_clean_mask(img, cut, msk, ret)

Categories: Image corrections

Description

is a lot like clean msk but it generates the msk using img and cut. Beware: work in progress

Parameters

Name Description
cut Threshold.
img Input float32 2D.
msk Priority mask (int8).
ret Output cleaned mask.

Constraints

  • img.ndim == 2
  • img.slow_axis == 0
  • msk.format == 'b' or msk.format == 'B'
  • msk.n == img.n
  • ret.format == 'b' or ret.format == 'B'
  • ret.n == img.n

Overloads

C function Condition
make_clean_mask_u32 always
make_clean_mask_u16 always
make_clean_mask_u8 always
make_clean_mask always

Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)