Question regarding image registration.
显示 更早的评论
I need to register some medical images which were taken by a regular video camera. But the images need a projective transformation due to differential skewing,scaling,translation and rotation. I used "cpselect" command. Brief description of my images are: inside a wax block(white in color), specific gland(brown in color) is present. I selected 4 corners of the wax block when using "cpselect" command. Unfortunately after running the code images are not registered properly.
Can you kindly help me out to correct this code or else show me an alternative path to register the images. Following is the code that i have used:
clc clear
A = imread('Pic1.jpg'); B = imread('Pic2.jpg'); cpselect(B,A)
subplot(221),imshow(A),title('Reference image') subplot(222),imshow(B),title('Moving image')
tform=cp2tform(input_points,base_points,'projective'); reg_out=imtransform(B,tform); subplot(223),imshow(reg_out),title('Registered image')
回答(2 个)
Anand
2014-11-3
0 个投票
I can't make any comments on whether the approach you've used with cpselect is reasonable because I can't see the images or the control points you've selected.
As for alternatives, have you tried using the imregister function?
1 个评论
Image Analyst
2014-11-3
Because he has skewing, etc. should he look into imwarp() or the camera calibration stuff in the Computer Vision System Toolbox?
类别
在 帮助中心 和 File Exchange 中查找有关 Image Registration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!