tumourkit.segmentation.hovernet.misc.utils

Functions

center_pad_to_shape

Pad input image.

color_deconvolution

Apply colour deconvolution.

cropping_center

Crop an input image at the centre.

get_bounding_box

Get bounding box coordinate information.

get_inst_centroid

Get instance centroids given an input instance map.

log_debug

log_info

mkdir

Make directory.

normalize

remove_small_objects

Remove connected components smaller than the specified size.

rm_n_mkdir

Remove and make directory.