Image Processing

deepskin.imgproc.get_perilesion_mask(mask: ndarray, ksize: tuple = (20, 20)) ndarray[source]

Extract the peri-lesion mask from the wound mask

Parameters:
  • mask (np.ndarray) – Input wound mask in GRAYSCALE

  • ksize (tuple) – Kernel dimension for the mask processing

Returns:

periwound_mask – Peri-lesion mask of the wound

Return type:

np.ndarray

deepskin.imgproc.imfill(img: ndarray) ndarray[source]

Fill the holes of a single image.

Parameters:

img (np.ndarray) – Image to fill in GRAYSCALE

Returns:

filled – filled image

Return type:

array-like