delta.utilities.gettrackingboxes¶
- delta.utilities.gettrackingboxes(cell: ndarray[Any, dtype[uint8]], frame_shape: Optional[Tuple[int, int]] = None, target_size: Optional[Tuple[int, int]] = None) Tuple[CroppingBox, CroppingBox]¶
Get a crop box and a fill box around a cell that fits the tracking target size
- Parameters
- cell2D array of uint8
Mask of the cell to track.
- frame_shapetuple of 2 ints or None, optional
Original dimensions of the image. If None, cell.shape is used. The default is None.
- target_sizetuple of 2 ints or None, optional
Target dimensions of the cropped image. If None, cfg.target_size_track will be used. The default is None.
- Returns
- cropboxdict
Crop box in the cropbox() input format. The crop box determines which part of the full-size frame to crop out.
- fillboxdict
Fill box in the cropbox() input format. The fill box determines which part of the target-size input to fill with the cropped out image.