Shared Samples

Try out source code samples stored in Bitbucket repositories.
Showing results for 
Search instead for 
Do you mean 

Job imageDicer

by Technical Evangelist on ‎09-08-2015 11:10 AM - edited on ‎03-29-2016 11:29 AM by Anonymous (692 Views)

Example Type

 

JOB

 

Purpose

 

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.

 

 

Files

 

imageDicer.c (C source code)

imageDicer.eml (EML script)

imageDicer.dsp (Visual C++ Project)(Windows Only)

 

 

 

Description

 

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.

 

Calling syntax:

 

imagedicer    -in <input raster>

                -out <output file(s) root>

                -coord <map | pixel> <grid width> <grid height>

                -reproject <NOT YET IMPLEMENTED>

                -meter <0|1>

 

Example: imagedicer -in "d:/delete/testtif.tif"

                    -out "d:/delete/delete.img"

                    -coord "pixel" 1000 1000

                    -m 1

 

 

Notes

(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.

 

 

Interface

demo.jpg 

 

demo2.jpg

 

 demo3.jpg

 

 

You can use File->New->FootPrint to view the boundary of multiple dices.

 

 demo4.jpg

 

Source Code:

https://bitbucket.org/HGDN/hgdn_erdas_imagine/src/e1ade3b7d148b0f2f1aa6427044dfa4bce6226ee/Job_image...

 

 

Overview
Contributors