Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Make two pictures have the centroid in the same spot
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I want to use the function imabsdiff so I can obtain the absolute difference between two pictures. The problem is that i get a size error because the centroids of the two pictures are in different positions. How can I make them both coincide, regarding the fact that the object is the same in both pictures. Thank you!
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 9 月 20 日
Consider imregister()
2 件のコメント
Walter Roberson
2017 年 9 月 27 日
You can calculate the minimum distance between centroid and each side over the two pictures, and then crop out the extra from each image. The result should have the centroids in the same relative position.
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!