weak_texture_mask#

sunkit_image.utils.noise.weak_texture_mask(img, patchsize, thresh)[source]#

Calculates the weak texture mask.

Parameters:
  • img (numpy.ndarray) – Single Numpy image array.

  • patchsize (int, optional) – Patch size, defaults to 7.

  • thresh (numpy.ndarray) – Threshold to extract weak texture patches at the last iteration.

Returns:

mask (numpy.ndarray) – Weak-texture mask. 0 and 1 represent non-weak-texture and weak-texture regions, respectively.