Registation of two images in '.mat' format

3 visualizaciones (últimos 30 días)
AUWAL ABUBAKAR
AUWAL ABUBAKAR el 18 de Oct. de 2020
Comentada: AUWAL ABUBAKAR el 19 de Oct. de 2020
Good day all,
Could someone please help me on how to register two images in '.mat format. Each .mat variable is 36x129 with each element representing a distance value. When plotted using 'surf plot' it gives a chest surface images.
I would like to register the two surafces and obtain the difference in the surafce positions. Below is the code i used so far but returns a warning.. ' Registration failed because optimization diverged'
[optimizer, metric] = imregconfig('multimodal');
img_reg = imregister(img1, img2, 'affine', optimizer, metric);
imshowpair(img2, img_reg,'falsecolor');
Attached are the variables and the suraface image obtained when surf plot is used
Thanks

Respuesta aceptada

Matt J
Matt J el 18 de Oct. de 2020
With monomodal registration, it works fine for me,
[optimizer, metric] = imregconfig('monomodal');
but I should mention that the two images look almost identical to begin with.
  5 comentarios
Matt J
Matt J el 18 de Oct. de 2020
Editada: Matt J el 18 de Oct. de 2020
Because you have done an affine registration, the position error is different for every point, but you can obtain the estimated tform relating the images using imregtform
tform = imregtform(img1, img2, 'affine', optimizer, metric);
AUWAL ABUBAKAR
AUWAL ABUBAKAR el 19 de Oct. de 2020
Thanks alot. Really help, I appreciate.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Geometric Transformation and Image Registration en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by