livecellx.core.SingleCellStatic.get_contour_coords_on_img_crop

SingleCellStatic.get_contour_coords_on_img_crop(padding=0)

A utility function to calculate pixel coord in image crop’s coordinate system from the contour coordinates in the whole image’s coordinate system.

Parameters:

padding (int, optional) – Padding value to be used in the calculations, by default 0

Returns:

Returns contour coordinates in the cropped image’s coordinate system

Return type:

np.array