tumourkit.segmentation.hovernet.models.hovernet.utils.crop_to_shape
- tumourkit.segmentation.hovernet.models.hovernet.utils.crop_to_shape(x, y, data_format='NCHW')
Centre crop x so that x has shape of y. y dims must be smaller than x dims.
- Args:
x: input array y: array with desired shape.