livecellx.core.SingleCellStatic.get_contour_coords_on_img_crop

SingleCellStatic.get_contour_coords_on_img_crop(padding=0)[source]

A utility function to calculate pixel coord in image crop’s coordinate system to draw contours on an image crop.

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