skimage2.filters.roberts#
- skimage2.filters.roberts(image, mask=None)[source]#
Find the edge magnitude using Robertsâ cross operator.
- Parameters:
- imagendarray of shape (M, N)
Image to process.
- maskndarray of shape (M, N), optional
An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result.
- Returns:
- outputndarray of shape (M, N) and dtype float
The Robertsâ Cross edge map.
See also
roberts_pos_diag,roberts_neg_diagdiagonal edge detection.
sobel,scharr,prewitt,skimage.feature.canny
Examples
>>> from _skimage2 import data >>> camera = data.camera() >>> from _skimage2 import filters >>> edges = filters.roberts(camera)