MM C - Mask Multiplication - Continuous

(4/19/97)

PURPOSE

Apply mask with soft edges to image/volume.   Example.

SEE ALSO

MA SOFT [Mask - image/volume with a soft adaptive mask ||]
MA [Mask - image/volume with a circular mask]
MM [Mask Multiplication]
MO [Create Model image]

USAGE

.OPERATION: MM C

.MASK FILE: MASK000
[Enter name of mask file containing values between 0.0 and 1.0 (inclusive)]

.IMAGE (OVERWRITTEN!) FILE: PIC001
[Enter name of image/volume to be masked. This image/volume file will be overwritten by the masked output image. Non-statistical header values from this file will be retained.]

NOTES

  1. The image/volume will be overwritten by the masked one.

  2. Values in the masked file are:
    A. Unchanged wherever the mask file has the value 1.0
    B. Changed to the file average 'AV' wherever the mask file has the value 0.0
    C. Altered at the mask edges wherever the value is between 0 and 1, according to the following formula:
    '   NEW(I,J) = [OLD(I,J) - OLDAV] * MASK(I,J) + OLDAV
    Where:
        'NEW'    is masked image/volume.
        'OLD'    is unmasked image/volume.
        'MASK'  is continuous-valued mask function
        'OLDAV' is average value of old, unmasked image/volume.

SUBROUTINES

MASKMU

CALLER

UTIL2

© Copyright Notice /       Enquiries: spider@wadsworth.org