HOME GUIDE OPERATIONS DOCS ERRORS FORMATS INSTALL NEW TIPS WEB SITES

CG - Center of Gravity

(8/22/97)

PURPOSE

Compute coordinates of center of gravity of an image with respect to the image center (at NSAM/2 + 1, NROW/2 + 1).

SEE ALSO

CG 3 [center of gravity - radius of gyration]
CG 3S [center of gravity - solid body]
CG PH [center of gravity - phase approximation]

USAGE

.OPERATION: CG X10,X11

.INPUT FILE: PIC001
[Enter name of image file.]

.THRESHOLD: 0.23
[Enter a threshold T. The center of gravity is evaluated for the following function:

 
           D(K,I)-T        for D(K,I) greater or equal to T 

0 elsewhere.]

NOTES

  1. The coordinates of the center of gravity are printed out, and are put into the optional registers appearing in the command line.

  2. EXAMPLE: To shift an image into its center of gravity computed for a threshold of T=0.23, one could use the following command sequence:
     
              CG X10,X11 
              PIC001 
              .23 
              SH 
              PIC001 
              SHI001 
              -X10,-X11 
    

SUBROUTINES

CENGRA

CALLER

UTIL1

© Copyright Notice /       Enquiries: spider@wadsworth.org