delta.utilities.getshiftvalues¶
- delta.utilities.getshiftvalues(shift: int, img_shape: Tuple[int, int], cb: CroppingBox) Tuple[int, int]¶
- Parameters
- shiftint
Max amount of pixels cropbox to be shifted in the y / x direction.
- img_shapetuple
Shape of the image / input that will be cropped.
- cropboxdict
Crop box in the cropbox() input format. The crop box determines which part of the full-size frame to crop out.
- Returns
- shiftYint
Number of pixels to shift cropbox in the y irection
- shiftXint
Number of pixels to shift cropbox in the x direction.