Skip to content.
CCB > CCBSIGS > ShapeToolLibraryProgram > LandmarkWarpTools > Visualize2DWarpUserGuide1x0

Visualize 2D Warp Application

This application creates a visualization of a 2D warp. This is done by generating a uniformly spaced 2D grid and using a warp to deform each vertex of the grid. The resulting warped grid is encoded as a ShapeTools shape, which can used by the ShapeViewer. The number of points used to create the grid may be specified by the user. The size of the grid is determined automatically. The source points used to create the warp are used as a reference for how large the grid should be. The source points will always be on the grid (though usually not on a vertex).

Here is the application usage page:

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)