Help for COMPTAB

PURPOSE:
comptab 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 average brightness or pixel value of the component in the 1st input image
7.  The average brightness or pixel value of the neighborhood of the component
    in the 1st input image
8.  The average brightness or pixel value of the component in the 2d input image
9.  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

comptab 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          08 nov 2004
 COGNIZANT PROGRAMMER:   A. Zobrist          08 nov 2004
 
 REVISION HISTORY
  2008-04-11 AZ  Initial version
  2008-01-02 WLB Switched to USES_ANSI_C AND LIB_CARTO; misc cleanup
  2016-01-13 WLB Migrated to MIPL; replaced printfs with zifmessages
  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: