mapImage.subGrid edit page

crop a rectangle out of a mapImage

Crops the image, the map that travels with it, and moves the origin so the geometry still says where the remaining pixels are. Nothing is resampled.

Syntax

mg = subGrid(mg,rows,cols)
mg = subGrid(mg,mask)

Input

mg mapImage
rows, cols index vectors, contiguous and ascending
mask logical over the grid; its bounding box is taken

Output

mg mapImage

See also

mapImage mapImage.extent EBSDsquare.subGrid