Spatial extents of 2-D rectangular region
A Rectangle
object stores the spatial extents of a 2-D
image.
You can create a Rectangle
object in the following ways.
centerCropWindow2d
— Create a Rectangle
of a specified
size whose position is centered on an image of different size.
randomCropWindow2d
— Create a Rectangle
of a specified
size whose position is selected randomly from within an image of different size.
Running the command
r = images.spatialref.Rectangle(XLimits,YLimits)
Rectangle
object and sets the XLimits
and
YLimits
properties.centerCropWindow2d
| Cuboid
| imcrop
| randomCropWindow2d