Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Make two pictures have the centroid in the same spot

1 visualizzazione (ultimi 30 giorni)
Angela Muñoz
Angela Muñoz il 20 Set 2017
Chiuso: Angela Muñoz il 9 Giu 2018
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!

Risposte (1)

Walter Roberson
Walter Roberson il 20 Set 2017
Consider imregister()
  2 Commenti
Angela Muñoz
Angela Muñoz il 27 Set 2017
It doesn't work. When I use regionprops I get that the centroids and the axis of each picture are different but I don't know how to change them.
Walter Roberson
Walter Roberson il 27 Set 2017
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.

Questa domanda è chiusa.

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by