Compute eigenvalues and eigenvectors of the Hessian of 2D matrix as gray images.
The miniature is obtain by following code :
I = mat2gray(imread('cameraman.tif'));
[n, m] = size(I);
idx = (1:20:(n*m))';
[rows, cols] = meshgrid(1:m, 1:n);
[l, v] = Hessian2Ddec(I, 10, true);
figure; imshow(I); hold on;
quiver(cols(idx), rows(idx), v(idx + n*m*2), v(idx + n*m*3), 'b')
引用格式
Geoffrey Schivre (2024). Hessian2Ddec (https://www.mathworks.com/matlabcentral/fileexchange/71713-hessian2ddec), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2018a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Mathematics > Linear Algebra >
在 Help Center 和 MATLAB Answers 中查找有关 Linear Algebra 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |