Performs a Robertsedge enhancement of an image.
NOTE: For horizontal line enhancement only, you must disable the vertical line enhancement by setting the Row keyword to 0.
'zero'
) Valid strings are:
'zero'
Sets the border of the output image to zero. (Default)
'copy'
Copies the border of the input image to the output image.
TIP: Use the No_Clip keyword to avoid overflow conditions.
'abs'
, 'phase'
, and 'value'
. The Return keyword is used with the Row and Col keywords per the following table. (Default: 'abs'
)
NOTE: For vertical line enhancement only, you must disable the horizontal line enhancement by setting the Col keyword to 0.
Zero_Negatives If set, all negative values in result are set to zero.
The ROBERTS function performs edge sharpening and isolation on image. It returns an approximation to the Roberts edge enhancement operator for images. This approximation is:
CAUTION: Because the result image is saved in integer format, large original data values will cause overflow. Overflow occurs when the absolute value of the result is larger than 32,767. Use the No_Clip keyword to avoid overflow.
OPENR, unit, FILEPATH('aerial_demo.img', Subdir='data'), /Get_Lun
img = BYTARR(512, 512)
READU, unit, img
FREE_LUN, unit
WINDOW, 0, Xsize = 1024, Ysize = 512
TV, img
HIST_EQUAL_CT, img TV, ABS(img - ROBERTS(img)), 1
Figure 2-95 Original image (left), and Roberts edge enhanced image (right).
Figure 2-96 Original image (left), and Roberts edge enhanced image (right).
For background information, see Image Sharpening in Chapter 6 of the PV-WAVE User's Guide.