Help for INSECT

PURPOSE:

INSECT is a VICAR applications program which combines two pictures
of unequal size into one composite picture.  INSECT may be used to
mosaic two pictures or to replace a portion of one picture with a 
portion of another. 

INSECT creates an output picture with its size given by the NL and 
NS.   The section of the primary input given by the SL and SS 
parameters is placed in the top left-hand section of the output
picture.  The desired portion of the second input is placed in the 
location given by the parameter INSECT.
If an output pixel corresponds to pixels from both inputs, it is 
assigned the DN of the pixel from the secondary input.  All pixels 
of the output not corresponding to any pixel in either input will 
be assigned the DN of 0.  The maximum length of an output line 
is 20000 bytes.

EXECUTION:


INSECT INP=(A.DAT,B.DAT) OUT=C.DAT SL=1 SS=1 NL=40 NS=500   insect=(50,150,150,150,250,350)

If A.DAT is a 300 line by 400 sample picture and B.dat is a 200 line
by 400 sample picture, then, the above statement will mosaic the two 
pictures replacing the last 150 lines and 50 samples of A.DAT by the
last 150 lines and middle 150 samples of B.DAT. (see following example)




		400                           150     300
	____________________  		____________________
       |                    |          |                    |
       |                    |          |      _______       | 50
       |                    |    200   |     |       |      |
       |    A.DAT           |          |     | B.DAT |      |
 300   |                    |          |     |       |      |
       |                    |          |     |       |      |
       |                    |           --------------------
       |                ----|250		400
       |                |   |
        --------------------
		     350
		For output picture C.DAT see the next page.


				   500
			 _________________________
		     	|                  |	  |
			|		   |	  |
			|   A.DAT	   |  0   |
		    400	|		   |	  |
			|		   |	  |
			|		  --------|
			|________________|        |
			|		 | B.DAT  |
			|	 0 	 |	  |
			 -------------------------
			           C.DAT
WRITTEN BY:  H. J. Frieden,  30 Aug. 1968

CONVERTED TO VAX BY:  S. J. Rueff,  1 March 1984

CONVERTED TO VICAR2 BY:  B. Gokhman,  19 Nov. 1984

CURRENT COGNIZANT PROGRAMMER:  F. F. Moss

PARAMETERS:


INP

Two input Image data sets.

OUT

The output image data set.

SIZE

The Vicar Size Field.

SL

Starting Line of Primary input

SS

Starting Sample of Primary input

NL

Number of Lines output

NS

Number of Samples output

INSECT

1. Starting Line of second input 2. Starting Sample of second input 3. Number of Lines of second input to be copied 4. Number of Samples of second input to be copied 5. Output line for Line 1 of second input 6. Output sample for Line 1 of second output

See Examples:


Cognizant Programmer: