datumaro.plugins.tiling.util#

Functions

clip_x1y1x2y2(x1, y1, x2, y2, max_x, max_y)

cxcywh_to_x1y1x2y2(c_x, c_y, w, h)

x1y1x2y2_to_cxcywh(x1, y1, x2, y2)

x1y1x2y2_to_xywh(x1, y1, x2, y2)

xywh_to_x1y1x2y2(x, y, w, h)

datumaro.plugins.tiling.util.x1y1x2y2_to_cxcywh(x1: int, y1: int, x2: int, y2: int) Tuple[int, int, int, int][source]#
datumaro.plugins.tiling.util.cxcywh_to_x1y1x2y2(c_x: int, c_y: int, w: int, h: int) Tuple[int, int, int, int][source]#
datumaro.plugins.tiling.util.clip_x1y1x2y2(x1: int, y1: int, x2: int, y2: int, max_x: int, max_y: int, min_x: int = 0, min_y: int = 0) Tuple[int, int, int, int][source]#
datumaro.plugins.tiling.util.x1y1x2y2_to_xywh(x1: int, y1: int, x2: int, y2: int) Tuple[int, int, int, int][source]#
datumaro.plugins.tiling.util.xywh_to_x1y1x2y2(x: int, y: int, w: int, h: int) Tuple[int, int, int, int][source]#