필터 지우기
필터 지우기

image registration with affine transformation

조회 수: 1 (최근 30일)
tala
tala 2017년 3월 26일
댓글: Bhakti Raul 2018년 1월 10일
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
Bhakti Raul
Bhakti Raul 2018년 1월 10일
%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);

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by