delta.utils.CroppingBox#

class delta.utils.CroppingBox(xtl, ytl, xbr, ybr)[source]#

Class describing a box to cut out.

__init__(xtl, ytl, xbr, ybr)[source]#

Methods

__init__(xtl, ytl, xbr, ybr)

crop(image)

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.

tracking_box(contour, shape)

Get a crop box around a cell that fits the tracking target size.

Attributes

shape

Shape of the cropping box.

xtl

Top-left corner X coordinate.

ytl

Top-left corner Y coordinate.

xbr

Bottom-right corner X coordinate.

ybr

Bottom-right corner Y coordinate.