How to compute the displacement field between different images?

Hi, we are two students and we have to compute the displacement field between images of a heart in movement. We don't know how to compute the displacement in the x direction and in the y direction. Could you help us to implement the code? Thank you.

3 commentaires

Hi, we are a couple of students looking for the same answer. Did you find it?
Santhosh Vallakati
Santhosh Vallakati le 8 Sep 2020
Modifié(e) : Santhosh Vallakati le 8 Sep 2020
I do not see any function in Computer Vision System Toolbox which provides the image pixel displacement between two images. I tried using imregtform() function but this is not capable of finding the movement in single object displacement. Is there any other source which helps in finding the image pixel displacement between two compared images?
Try normxcorr2(). Demo attached.

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 25 Nov 2015
There is an optical flow function in the Computer Vision System Toolbox that you should use. It basically gives a little vector at each pixel saying where that pixel moved to from the first image to the second image.

Question posée :

N A
le 25 Nov 2015

Commenté :

le 8 Sep 2020

Community Treasure Hunt

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

Start Hunting!

Translated by