Rescale an image so that maximum side is equal to max_size, keeping the aspect ratio of the initial image.

icevision_LongestMaxSize(
  max_size = 1024,
  interpolation = 1,
  always_apply = FALSE,
  p = 1
)

Arguments

max_size

max_size

interpolation

interpolation

always_apply

always_apply

p

p

Value

None

Targets

image, mask, bboxes, keypoints

Image types

uint8, float32