According to SVD technique A=U*S*V'. But when I apply SVD to my image, I am not able to retrieve my original image. Is that because S matrix is not taking the all the eigen values? Eventhough, I had to get a partially correct image?
2 ビュー (過去 30 日間)
古いコメントを表示
Sandra Maria Cherian
2018 年 2 月 20 日
コメント済み: Sandra Maria Cherian
2018 年 2 月 20 日
[u,s,v]=svd(a); ap=u*s; a=ap*v;
0 件のコメント
採用された回答
Roger Stafford
2018 年 2 月 20 日
編集済み: Roger Stafford
2018 年 2 月 20 日
You've left off the transpose operator at the last step:
ap*v';
It's a very small character, but it's all-important!
Round-off errors may cause tiny differences between your original a and the restored a. If the image pixels in the original a were all integers, just do a round on the result and that should restore it exactly.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!