{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / filters / edges / roberts

function

skimage.filters.edges:roberts

source: /dev/scikit-image/src/skimage/filters/edges.py :566

Signature

def   roberts ( image mask = None )

Summary

Find the edge magnitude using Roberts' cross operator.

Parameters

image : ndarray of shape (M, N)

Image to process.

mask : ndarray 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

output : ndarray of shape (M, N) and dtype float

The Roberts' Cross edge map.

Examples

from skimage import data
camera = data.camera()
from skimage import filters
edges = filters.roberts(camera)

See also

prewitt
roberts_neg_diag

diagonal edge detection.

roberts_pos_diag

diagonal edge detection.

scharr
skimage.feature.canny
sobel

Aliases

  • skimage.filters.roberts