tumourkit.postprocessing.merge_cells.get_gradient
- tumourkit.postprocessing.merge_cells.get_gradient(png: ndarray) ndarray
” Computes the morphological gradient of a binary image.
- Parameters:
png (np.ndarray) – The binary image for which the gradient is computed.
- Returns:
The gradient image.
- Return type:
np.ndarray