Go to the USGS Home Page

USGS MIPS Zip Documentation






This program will replace a selected dn  value within the image  with a user selected pattern. The patterns currently available are vertical, horizontal, 45 degree diagonal, -45 degree diagonal, horizontal cross-hatching and diagonal cross-hatching. This program also allows the user to cross-hatch different dns within the image without having to execute ZIP multiple times.

  

Files

This program requires as input an unsigned 8-bit  image file. It will produce one unsigned 8-bit image file. The following information is transfered from the input file to the output files(if appropriate):

Image labels 
Mosaic labels
Sonar labels
Navigation   file
Projection labels
History   file
               

Parameters

VERTICAL, HORIZONTAL, POSDIAGONAL, NEGDIAGONAL, HORZCROSS or DIAGCROSS

These options are used to select the cross-hatching pattern ZIP will use to create the output image file.

Vertical and Horizontal patterns generate lines that will be written to the output image file from either top-to-bottom or left-to-right, respectively.

Posdiagonal will generate lines that will be written from the top-left to the bottom-right of the image file at a 45 degree angle. Negdiagonal will generate lines that will be written from the bottom-left to the top-right of the image file at a 45 degree angle.

Horzcross outputs horizontal cross-hatching resembling a checkerboard type pattern. Diagcross outputs diagonal cross-hatching resembling a chain-link fence.

IDN

This parameter is used the select the DN within the image that will be cross-hatched. There is no default.

FDN and BDN

These parameters are used to select the DN values for the foreground and background of the pattern selected. The foreground of the pattern is the actual dash while the background is the surrounding area around the dash. Fdn defaults to 255 and Bdn defaults to zero.

DASHLEN and GAPLEN

These parameters are used to select how the line of dashes should be created. Dashlen is the length of the dash and Gaplen is the length of the gap between a dash and the next one all within a line of dashes. Dashlen defaults to 1 and Gaplen defaults to zero.

SPACING and THICK

These parameters are used to select the spacing and thickness of the lines being used to cross-hatch the image. Spacing the distance between a line of dashes and the next one. Thickness is the width of the line of dashes. Spacing defaults to 1 and Thick defaults to 2.

EFFECT

ZIP allows the user to cross-hatch the same input image multiple times during the same session. This can be done by having the user identify the dn to be replaced with a pattern and selecting the appropriate parameters, hitting the "OK" button, selecting the next parameters for the next cross-hatch, hitting the "OK" button, again and again until the last parameters were entered. Finally, after the last cross-hatch parameters were entered, the "Ok" button must be pushed before selecting the Effect parameter. Selecting Effect then exits the params prompt and allows ZIP to cross-hatch the image. Note that the Effect parameter will only be selected once during any run of ZIP.

Uses

Good to convert black and white maps (classification results, geological map, etc.) to one with patterns which are easier to visually detect differences (if user does not want to color code an image or to combine colors with patterns).

Examples

From left to right, original Landsat TM Band 4 modified using a PC drawing package and image after cross-hatching.

[Example Image] [Example Image]

See Also

Classavg 
Classy 
U.S. Department of the Interior | U.S. Geological Survey | Jobs
Home | Search | Disclaimers & Privacy Web Rings
Send comments to webman@TerraWeb.wr.usgs.gov
URL:
Last Modified: Thu Oct 31 15:08:22 MST 2002
FirstGov: Your First Click to the U.S. Gov ernment