Crop sub images out of a larger image, based on a grid. The grid location is defined in terms of the x/y coordinates
of the corners (which comes from the input Data instance), and the number of segments within the grid in both directions.
The 4 corner X coordinates come from
Data.getListDouble(xName) and the 4 corner Y coordinates come from
Data.getListDouble(yName).
Note that the output depends on the configuration.
Always returned:
List<Image> - the cropped images from the grid, in order: (row,col) = (0,0), (0, 1), ..., (0, C-1), ..., (R-1, C-1).
Returned if
outputCoordinates=true: two
List<Long>s - the box coordinates (0,0), ..., (gridX-1, gridY-1)
Returned if
boundingBoxName != null: one
List<BoundingBox> - the crop bounding boxes, (0,0), (0,1), ..., (gridX-1, gridY-1)
See also
CropFixedGridStep
If
aspectRatio is set, the smaller dimension will be increased to keep the aspect ratio correct. Note this may crop
outside the image border