Effacer les filtres
Effacer les filtres

image registration with affine transformation

1 vue (au cours des 30 derniers jours)
tala
tala le 26 Mar 2017
Commenté : Bhakti Raul le 10 Jan 2018
hello. i am trying to use an affine transformation for image registration. i have selected 4 control points with 'cpselect' and the 'cp2tform' to fined the transformation. know i dont know how can i continue to see the registration result. can anybody help me please? this is my code till here:
%clc;clear all;close all; %I=imread('ct.JPG'); %J=imread('echo.JPG'); %cp_select=cpselect(I,J); %TFORM = cp2tform(cpstruct,'affine');
thanks
  1 commentaire
Bhakti Raul
Bhakti Raul le 10 Jan 2018
%assume I is fixed image and J is moving image
[movingPoints, fixedPoints]=cpselect(J,I,'wait',true);
movingPointsChanged=cpcorr(movingPoints, fixedPoints,J, I);
mytform = fitgeotrans(movingPointsChanged, fixedPoints, 'affine');
Rortho = imref2d(size(I));
registered = imwarp(J,mytform,'OutputView',Rortho);

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Geometric Transformation and Image Registration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by