| iminsert | stsdas.toolbox.imgtools | iminsert |
iminsert -- Insert a small image into a larger image.
iminsert input1 input2 output option coordfile
This task will copy the image passed to input1 into an output image. The image passed to input2 is then inserted into the output image at the position specified in coordfile; only the overlapping area will be changed. Multiple copies of input2 will be inserted into the output image if coordfile contains more than one pair of coordinates. All images are assumed to be 2-dimensional.
Method used to insert the small image into the larger image. The option "replace" will cause pixel values in input1 to be replaced by the values in input2 at overlapping positions. The "add" option causes new pixel values to be added to existing values, and the "multiply" option causes the two values to be multiplied with the result going in the output image.
For a text file or a cursor table, two columns are read, with column names given by the parameters xcol and ycol. For a text file "c1" and "c2" may be the appropriate column names. There may be many rows in the file, each one of which results in one copy of input2 in the output image.
For a reseau table, xcol and ycol are ignored, and entry is used to determine which row to read. The row will typically contain many reseau positions; input2 will be inserted into the output at each reseau position.
For information about using reseau tables, see the help files in the focgeom package. For information about using a cursor table, see the help file for the tvcursor task in the vdisplay package.
1. Create the image "out", which is a copy of the image "big", except that at the coordinates specified in the text file "coords.dat" the values are replaced by the pixel values of the image "small".
im> iminsert big small out replace coords.dat
reseau_files, focgeom, tvcursor