randomWindow2d
Randomly select rectangular region in image
Syntax
Description
selects a rectangular region of size win = randomWindow2d(inputSize,targetSize)targetSize from a random position
in an image of size inputSize.
selects a rectangular region, specifying the size of the region relative to the input image,
win = randomWindow2d(inputSize,Scale=scale,DimensionRatio=dimensionRatio)scale, and the aspect ratio of the region,
dimensionRatio.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021a



