Crop a random part of the input and rescale it to some size without loss of bboxes.

Crop a random part of the input and rescale it to some size without loss of bboxes.

icevision_RandomSizedBBoxSafeCrop(
  height,
  width,
  erosion_rate = 0,
  interpolation = 1,
  always_apply = FALSE,
  p = 1
)

icevision_RandomSizedBBoxSafeCrop(
  height,
  width,
  erosion_rate = 0,
  interpolation = 1,
  always_apply = FALSE,
  p = 1
)

Arguments

height

height

width

width

erosion_rate

erosion_rate

interpolation

interpolation

always_apply

always_apply

p

p

Value

None

None

Targets

image, mask, bboxes

image, mask, bboxes

Image types

uint8, float32

uint8, float32