{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / feature / corner / corner_shi_tomasi

function

skimage.feature.corner:corner_shi_tomasi

source: /dev/scikit-image/src/skimage/feature/corner.py :733

Signature

def   corner_shi_tomasi ( image sigma = 1 )

Summary

Compute Shi-Tomasi (Kanade-Tomasi) corner measure response image.

Extended Summary

This corner detector uses information from the auto-correlation matrix A

A = [(imx**2)   (imx*imy)] = [Axx Axy]
    [(imx*imy)   (imy**2)]   [Axy Ayy]

Where imx and imy are first derivatives, averaged with a gaussian filter. The corner measure is then defined as the smaller eigenvalue of A

((Axx + Ayy) - sqrt((Axx - Ayy)**2 + 4 * Axy**2)) / 2

Parameters

image : ndarray of shape (M, N)

Input image.

sigma : float, optional

Standard deviation used for the Gaussian kernel, which is used as weighting function for the auto-correlation matrix.

Returns

response : ndarray

Shi-Tomasi response image.

Examples

from skimage.feature import corner_shi_tomasi, corner_peaks
square = np.zeros([10, 10])
square[2:8, 2:8] = 1
square.astype(int)
corner_peaks(corner_shi_tomasi(square), min_distance=1)

Aliases

  • skimage.feature.corner_shi_tomasi