structure_tensor_eigvals
-
skimage.feature.structure_tensor_eigvals(Axx, Axy, Ayy)
[source] -
Compute Eigen values of structure tensor.
Parameters: Axx : ndarray
Element of the structure tensor for each pixel in the input image.
Axy : ndarray
Element of the structure tensor for each pixel in the input image.
Ayy : ndarray
Element of the structure tensor for each pixel in the input image.
Returns: l1 : ndarray
Larger eigen value for each input matrix.
l2 : ndarray
Smaller eigen value for each input matrix.
Examples
12345678910>>>
from
skimage.feature
import
structure_tensor, structure_tensor_eigvals
>>> square
=
np.zeros((
5
,
5
))
>>> square[
2
,
2
]
=
1
>>> Axx, Axy, Ayy
=
structure_tensor(square, sigma
=
0.1
)
>>> structure_tensor_eigvals(Axx, Axy, Ayy)[
0
]
array([[
0.
,
0.
,
0.
,
0.
,
0.
],
[
0.
,
2.
,
4.
,
2.
,
0.
],
[
0.
,
4.
,
0.
,
4.
,
0.
],
[
0.
,
2.
,
4.
,
2.
,
0.
],
[
0.
,
0.
,
0.
,
0.
,
0.
]])
Please login to continue.