The ROBERTS function returns an approximation to the Roberts edge enhancement operator for images:
where (j, k) are the coordinates of each pixel Fjk in the Image. This is equivalent to a convolution using the masks,
where the underline indicates the current pixel Fjk. The last column and row are set to zero.
Result = ROBERTS(Image)
ROBERTS returns a two-dimensional array of the same size as Image. If Image is of type byte or integer, then the result is of integer type, otherwise the result is of the same type as Image.
| Note |
The two-dimensional array containing the image to which edge enhancement is applied.
None.
If the variable myimage contains a two-dimensional image array, a Roberts sharpened version of myimage can be displayed with the command:
TVSCL, ROBERTS(myimage)
Introduced: 4.0