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.

Examples

>>> from _skimage2 import data
>>> camera = data.camera()
>>> from _skimage2 import filters
>>> edges = filters.roberts(camera)