This is a development version (0.26.1rc0.dev0) and may be unstable.Go to latest (0.26.1rc0.dev0+git20260530.b607368ff)
{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0 / skimage / feature / corner / corner_moravec

function

skimage.feature.corner:corner_moravec

source: /_skimage2/feature/corner.py:1256

Signature

def corner_moravec(image, window_size = 1)

Summary

Compute Moravec corner measure response image.

Extended Summary

This is one of the simplest corner detectors and is comparatively fast but has several limitations (e.g. not rotation invariant).

Parameters

image : ndarray of shape (M, N)

Input image.

window_size : int, optional

Window size.

Returns

response : ndarray

Moravec response image.

Examples

from skimage.feature import corner_moravec
square = np.zeros([7, 7])
square[3, 3] = 1
square.astype(int)
corner_moravec(square).astype(int)
✓
array([[0, 0, 0, 0, 0, 0, 0],
       [0, 0, 0, 0, 0, 0, 0],
       [0, 0, 1, 1, 1, 0, 0],
       [0, 0, 1, 2, 1, 0, 0],
       [0, 0, 1, 1, 1, 0, 0],
       [0, 0, 0, 0, 0, 0, 0],
       [0, 0, 0, 0, 0, 0, 0]])

Aliases

  • skimage.feature.corner_moravec