This example illustrates how to cut image into multiple dices, you can specify the size and overlap of each dice. You can also learn the wizard-like interface for complex processing steps.
imageDicer.c (C source code)
imageDicer.eml (EML script)
imageDicer.dsp (Visual C++ Project)(Windows Only)
This is program is mean to "chop" an image up into regular sized pieces based on an input grid size. The program will preserve the map and projection information of the input image.
imagedicer -in <input raster>
-out <output file(s) root>
-coord <map | pixel> <grid width> <grid height>
-reproject <NOT YET IMPLEMENTED>
Example: imagedicer -in "d:/delete/testtif.tif"
-coord "pixel" 1000 1000
(1) You only need to specify the root name and extension of the output file. The program will automatically prepend to the root to distinguish outputs.
(2) The -coord option specifies whether the grid width and heights are pixel or map coordinates. The default is pixel. MAP HAS BEEN IMPLEMENTED.
You can use File->New->FootPrint to view the boundary of multiple dices.