skimage 0.17.2

ParametersReturnsBackRef
hessian_matrix(image, sigma=1, mode='constant', cval=0, order='rc')

The Hessian matrix is defined as:

H = [Hrr Hrc]
    [Hrc Hcc]

which is computed by convolving the image with the second derivatives of the Gaussian kernel in the respective r- and c-directions.

Parameters

image : ndarray

Input image.

sigma : float

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

mode : {'constant', 'reflect', 'wrap', 'nearest', 'mirror'}, optional

How to handle values outside the image borders.

cval : float, optional

Used in conjunction with mode 'constant', the value outside the image boundaries.

order : {'rc', 'xy'}, optional

This parameter allows for the use of reverse or forward order of the image axes in gradient computation. 'rc' indicates the use of the first axis initially (Hrr, Hrc, Hcc), whilst 'xy' indicates the usage of the last axis initially (Hxx, Hxy, Hyy)

Returns

Hrr : ndarray

Element of the Hessian matrix for each pixel in the input image.

Hrc : ndarray

Element of the Hessian matrix for each pixel in the input image.

Hcc : ndarray

Element of the Hessian matrix for each pixel in the input image.

Compute Hessian matrix.

Examples

This example is valid syntax, but we were not able to check execution
>>> from skimage.feature import hessian_matrix
... square = np.zeros((5, 5))
... square[2, 2] = 4
... Hrr, Hrc, Hcc = hessian_matrix(square, sigma=0.1, order='rc')
... Hrc array([[ 0., 0., 0., 0., 0.], [ 0., 1., 0., -1., 0.], [ 0., 0., 0., 0., 0.], [ 0., -1., 0., 1., 0.], [ 0., 0., 0., 0., 0.]])
See :

Back References

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

skimage.feature.corner.hessian_matrix skimage.feature.corner._hessian_matrix_image skimage.feature.corner.hessian_matrix_eigvals

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#107
type: <class 'function'>
Commit: