Low rank Euclidean distance matrix
1 回表示 (過去 30 日間)
古いコメントを表示
How i can generate a random low rank EDM matrix X such that X=A*B and A of size (n,r), and B of size(r,n)
0 件のコメント
回答 (1 件)
Image Analyst
2023 年 4 月 3 日
I'm not sure what that means, but you can generate an EDM matrix with bwdist
3 件のコメント
Image Analyst
2023 年 4 月 4 日
You're using EDM in a way that is not familiar to me, as a member of the image processing community, where it means the distance of a pixel in a foreground object to the nearest background pixel.
Your first loop looks like it's doing the same thing as pdist2
Sorry I can't help you because I don't understand why rank matters and why you want it to be a low number. Image image processing, the EDM is what it is - it's a given for a given matrix and is not something you can adjust. It's like saying the distance between 10 and 15 is 5. OK, it's 5 but you can't say that want it to be 4. It just isn't. So that's why I say I don't understand what you want or why you want it.
参考
カテゴリ
Help Center および File Exchange で Particle & Nuclear Physics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!