skimage 0.17.2

ParametersReturnsBackRef
corner_shi_tomasi(image, sigma=1)

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

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.

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

Examples

This example is valid syntax, but we were not able to check execution
>>> from skimage.feature import corner_shi_tomasi, corner_peaks
... square = np.zeros([10, 10])
... square[2:8, 2:8] = 1
... square.astype(int) array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])
This example is valid syntax, but we were not able to check execution
>>> corner_peaks(corner_shi_tomasi(square), min_distance=1,
...  threshold_rel=0) array([[2, 2], [2, 7], [7, 2], [7, 7]])
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

skimage.feature.corner.corner_shi_tomasi

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/feature/corner.py#528
type: <class 'function'>
Commit: