IRAF help page for package proto, program imreplace

from NOAO imreplace -- replace pixels in a window by a constantUSAGE PARAMETERSDESCRIPTIONEXAMPLES

imreplace -- replace pixels in a window by a constant


USAGE

imreplace images value lower upper


PARAMETERS

images

Images in which the pixels are to be replaced.

value

Replacement value for pixels in the window.

imaginary = 0.

Replacement value for pixels in the windoe for the imaginary part of complex data.

lower = INDEF

Lower limit of window for replacing pixels. If INDEF then all pixels are above lower. For complex images this is the magnitude of the pixel values.

upper = INDEF

Upper limit of window for replacing pixels. If INDEF then all pixels are below upper. For complex images this is the magnitude of the pixel values.


DESCRIPTION

The pixels in the images between lower and upper are replaced by the constant value. The special value INDEF in lower and upper corresponds to the minimum and maximum possible pixel values, respectively.

For complex images the replacement value is specified as separate real and imaginary and the thresholds are the magnitude.


EXAMPLES

1. In a flat field calibration which has been scaled to unit mean replace all response values less than or equal to 0.8 by 1.

cl> imreplace calib 1 upper=.8

2. Set all pixels to zero within a section of an image.

cl> imreplace image[1:10,5:100] 0


This page automatically generated from the iraf .hlp file. If you would like your local iraf package .hlp files converted into HTML please contact Dave Mills at NOAO.

dmills@noao.edu