HOME GUIDE OPERATIONS DOCS FAQ TECHNIQUES FORMATS INSTALL NEW TIPS WEB LINKS Wadsworth Labs

SU - Subtract images/volumes

(9/22/06)

PURPOSE

Subtracts one or more images or volumes from first input iamge.

SEE ALSO

AD [Add images]
AR [Arithmetic operation]

USAGE

.OPERATION: SU

.INPUT FILE: PIC001
[Enter the name of the file from which the following files are to be subtracted. (Header positions from this file are transferred to output.)]

.SUBTRACTED FILE: PIC002
[Enter the name of the file to be subtracted from the first file. Can be same as the first input file.]

.OUTPUT FILE: PIC999
[Enter the name of the output file. Can be same as either input file.]

The system continues:

.SUBTRACTED FILE: PIC003
[Enter a '*' if no more subtractions are desired.]

[PIC002 is subtracted from PIC001, and the result is kept in PIC999. PIC003 is then subtracted from the new PIC001, and the result is again put into PIC999.]

NOTES

  1. 'SU' may only be used for files with identical dimensions.

  2. For use in a procedure you can use the following set of operations:
     
         BL               ; Create blank output file 
         out999           ; Output file name 
         64 64            ; Dimensions of output file (same as input!) 
         N                ; Do not use average 
         0.0              ; Image value 
         DO  [n]=1,60 
            SU            ; Subtract files operation  
            inp{***[n]}   ; Input file 
            out999        ; Second input file  
            out999        ; Output file 
            *             ; This input ended 
         ENDDO 
    

SUBROUTINES

ADD

CALLER

UTIL2

© Copyright Notice /       Enquiries: spider@wadsworth.org