Question regarding image registration.
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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')
0 Commenti
Risposte (2)
Anand
il 3 Nov 2014
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 Commento
Image Analyst
il 3 Nov 2014
Because he has skewing, etc. should he look into imwarp() or the camera calibration stuff in the Computer Vision System Toolbox?
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!