Gamma LAT: Reference Manual


mask_op

ANSI-C program: mask_op.c

NAME
mask_op - perform logical operations on mask files (Sun raster or BMP format).

SYNOPSIS
mask_op <mask-1> <mask-2> <mask_out> <mode>

<mask-1> (input) mask 1 SUN raster *.ras, or BMP *.bmp format, 8-bits/pixel
<mask-2> (input) mask 1 SUN raster *.ras, or BMP *.bmp format, 8-bits/pixel
<mask-out> (output) mask 1 SUN raster *.ras, or BMP *.bmp format
<mode> logical operation:
0: mask-1 AND mask-2
1: mask-1 OR mask-2
2: NOT mask-1

EXAMPLE
mask_op cc.ras region.ras cc_region.ras 0

The output cc_region.ras is the logical AND of cc.ras and region.ras. All pixels where either cc.ras or region.ras are 0, are marked as 0 in the output mask cc_region.ras.

INSTALLATION
Source code mask_op.c in ./src. For compilation adjust and use Makefile: Executable version mask_op in ../bin

AVAILABILITY
Uses type definition file typedef_ISP.h.

DESCRIPTION
Calculate logical operations on mask files stored in 8-bit Sun Raster of BMP format. The operations can either be AND, where corresponding pixels in both images must be greater than 0, OR, where either can be > 0, and the logical negation of mask-1. The value 0 is false and any value > 1 is TRUE. If the files are different sizes the output mask size is the size of mask-1.

OPTIONS
none

SEE ALSO
typedef_ISP.h, .

DIAGNOSTICS
All messages are generally self-explanatory.

NOTES
None.


© Copyrights for Documentation, Users Guide and Reference Manual by Gamma Remote Sensing, 2004.
awi, UW, CW, MS, last change 27-Nov-2008.