delta.utils.CroppingBox¶
- class delta.utils.CroppingBox(xtl, ytl, xbr, ybr)[source]¶
Class describing a box to cut out.
Methods
__init__(xtl, ytl, xbr, ybr)crop(images)Crop an image according to the cropping box.
full(image)Return a cropping box set to the full size of the image.
patch(image, patch)Apply a patch on an image at the position specified by the box.
resize([fx, fy])Resize the cropping box to follow an image resizing with the same factors.
tracking_box(contour, shape)Get a crop box around a cell that fits the tracking target size.
Attributes
shapeShape of the cropping box.
sizeSize of the cropping box as width * height.
xtlTop-left corner X coordinate.
ytlTop-left corner Y coordinate.
xbrBottom-right corner X coordinate.
ybrBottom-right corner Y coordinate.