Help for CONCOMP
PURPOSE:
concomp uses connectivity defined by adjacency (not diagonal) of pixels
to turn an image into a connected component image. Each connected
component receives a unique pixel number. The input and output must be
halfword.
The highest numbered component can be output to a tcl variable named
LASTCMP. The component numbering can also be started at a user selected
number with the parm STARTCMP.
EXECUTION:
Example
concomp A (B,WORK) The image A will be turned into connected
components in image B. The WORK image is
needed for calcualtions and can be deleted.
OPERATION:
TIMING:
As fast as VICAR can read and write the lines.
ORIGINAL PROGRAMMER: A. Zobrist 05 Nov 2004
COGNIZANT PROGRAMMER: A. Zobrist 05 Nov 2004
REVISION HISTORY
2004/05/11 AZ Initial version
2007/12/28 WB switched to USES_ANSI_C AND LIB_CARTO; misc cleanup
2014/07/03 WB increased component limit to 20000000; moved coin, join from stack to heap
PARAMETERS:
INP
The input image
OUT
The output image, and the
name of a working image, to
be discarded later
SIZE
Region of input file to be
operated on
SL
Starting line
SS
Starting sample
NL
Number of lines
NS
Number of samples
THRESH
Components smaller than this
are discarded
ZEDGE
All components touching edge
are zeroed out
STARTCMP
Start component numbering with
this value
LASTCMP
Output highest component number
in this integer TCL variable
See Examples:
Cognizant Programmer: