Help for COMPTAB2

PURPOSE:
comptab2 is a modified program of comptab

comptab2 creates an IBIS tabular file from a connected component image and
from 0 to 48 registered brightness or difference images.  The connected
component image is a halfword image, usually created by program CONCOMP.
The registered images can be byte or half.  The IBIS tabular file that is 
output has one record for each connected component and the following
columns:

1.  The component number
2.  The count of pixels in the component, can be converted to area
3.  The line number of the first pixel scanned (in l,s order) of the component
4.  The sample number of the first pixel scanned
5.  The diameter in pixels of the component
6.  The line centroid of component
7.  The samp centroid of component
8.  Extra column for future stats
9.  Extra column for future stats
10.  Extra column for future stats
11.  Extra column for future stats
12.  The average brightness or pixel value of the component in the 1st input image
13.  The average brightness or pixel value of the neighborhood of the component
    in the 1st input image
14.  The average brightness or pixel value of the component in the 2d input image
15.  The average brightness or pixel value of the neighborhood of the component
    in the 2d input image
etc

the last 10 columns are set to 0.0 to allow room for user calculation.

If a SIZE parameter is used, it applies to all of the input images.

EXECUTION:

Example

comptab2 INP=(A,B,C) OUT=D  A is the connected component image.  B and C are
                          registered brightness images. D is the output tabular file

OPERATION:

The statistics are read into an array from the input images.  The output
statistics are calculated and then written to an IBIS file.
 TIMING: 

all algorithms are linear with the image area.

 ORIGINAL PROGRAMMER:    A. Zobrist P. Kim   02 mar 2009
 COGNIZANT PROGRAMMER:   P. Kim              02 mar 2009
 
 REVISION HISTORY

  2004-11-07 A. Zobrist Original version
  2009-03-02 P. Kim   - 6 more stat columns added by pkim for centroid and extra stats
  2014-07-03 W. Bunch - Raised component limit to 10000000
  2015-10-23 W. Bunch - Migrated to MIPL
  2017-08-03 W. Bunch - Removed DEBUG from imake.
  2022-07-14 B. Crocco afids to opensource
  

PARAMETERS:


INP

STRING - Input image files; 1st is connected component; others registered brightness or dif- ference images

OUT

STRING - Output IBIS tabulr file

SIZE

INTEGER - Region of input files to be concatenated

SL

INTEGER - Starting line

SS

INTEGER - Starting sample

NL

INTEGER - Number of lines

NS

INTEGER - Number of samples

See Examples:


Cognizant Programmer: