Gri Commands
|
12.24: The `
|
`mask the image [to {uservalue .u.}|{imagevalue .i.}]' |
Examine both the image and the mask pixel by pixel. For any pixels
which have a mask value of 1 (which indicates an invalid region of the
image), change the image value. If no `to
' phrase is present,
change the image value to 0 in pixel units. If the
`to uservalue .u.
' phrase is present, change the pixel to hold the
imagevalue that
corresponds to this uservalue (see `set image range
' command for
a discussion of this correspondance). If the `to imagevalue .i.
',
change the pixel to hold that imagevalue (in range 0 to 255 inclusive
for 8-bit images).