1 Star 7 Fork 5

slandarer / 张量分解

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
demo1_1sl_HOSVD.m 392 Bytes
一键复制 编辑 原始数据 按行查看 历史
slandarer 提交于 2022-05-22 14:36 . init
function demo1_1sl_HOSVD
% 读取数据
file=load('Goldhill.mat');
X=file.XData;
% 截断值60,HO-SVD分解
[G,U]=HO_SVD(X,60);
% 使用模-n积还原拟合张量
% Gx_1U_1 x_2U_2 x_3U_3
apprX=modeN_prod(modeN_prod(modeN_prod(G,U{1},1),U{2},2),U{3},3);
% 展示拟合结果
imshow(uint8(apprX(:,:,1)))
% 展示与原图像差值
figure()
imagesc(abs(X(:,:,1)-apprX(:,:,end)))
colorbar
end
1
https://gitee.com/slandarer/tensor-decomposition.git
git@gitee.com:slandarer/tensor-decomposition.git
slandarer
tensor-decomposition
张量分解
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891