delta.utilities.cropbox¶
- delta.utilities.cropbox(img: ndarray[Any, dtype[Any]], box: Optional[CroppingBox]) ndarray[Any, dtype[Any]]¶
Crop image
- Parameters
- img2D numpy array
Image to crop.
- boxDictionary or None
Dictionary describing the box to cut out, containing the following elements:
‘xtl’: Top-left corner X coordinate.
‘ytl’: Top-left corner Y coordinate.
‘xbr’: Bottom-right corner X coordinate.
‘ybr’: Bottom-right corner Y coordinate.
- Returns
- 2D numpy array
Cropped-out region.