Examples for using the Visualize 2D Warp Application
Usage
This usage is generated by a call:
java -jar Visualize2DWarp.jar -help
NAME
Visualize2DWarp Version 1.0.0a0 - Creates a shape file that shows the defomation field of a 2-D warp.
SYNOPSIS
java -jar program.jar [options] warp.lmw prefix
DESCRIPTION
This program is used for visualizing warp files that map 2D points
to 2D points. This is done by taking a grid and applying the warp to
all vectices on that grid, and saving the result as a shape compatible
file. Essentially, this will demonstrate the deformation field. The
resulting shape file should be viewed in the ShapeViewer application.
The user can specify the number of points on the grid using the flag.
-resolutionThe size of the grid is determined by the source points used to make
the warp. These points are where the most deformation occurs.
The output file prefix is specified by the last argument. All files will
begin with this path and filename.
The user can overwrite existing files using the -overwrite flag.
OPTIONS
Flag | Description
__________________ | ________________________
-resolution res | Number of points in one direction of the grid. (Default=50).
-verbose | Enables verbose status messages.
-overwrite | Indicate that files should be overwritten.
-v | Displays program version.
-help | Displays the usage. You're reading it right now.
warp.lmw | The name of the warp file. (required)
prefix | The prefix for the output files. (required)
Examples
If there is a file 'warp.lmw', a shape representing it named 'visual.dfs' could be make by a call:
java -jar Visualize2DWarp.jar warp.lmw visual
If you wanted to use 100x100 grid to visualize it, overwriting the old file:
java -jar Visualize2DWarp.jar -resolution 100 -overwrite warp.lmw visual