MATLAB: How to Retrieve Intensity-Based Registration Data (with imregister) to re-Perform Registration? -
i thought should simple task, can't find way it:
i using 'imregister' (matlab) register 2 medical x-ray images. ensure best registration outcome possible, use image processing techniques such contrast enhancement, blackening of objects different between images , cropping. outcome of seems quite satisfying.
now, want perform exact same registaration on original images, can display 2 original images automatically in alignment.
i think output parameter such tform serves purpose of performing registration on 2 images, unfortunately 'imregister' not provide such parameter, far know.
it provide output spatial referencing object r_reg might answer, still haven't figured out how use re-preform registration.
i should mention since dealing medical x-ray images on non of feature-detecting algorithms seem work enough perform registration, can use intensity-based (as opposed feature-based) registration, , therefore using 'imregister'.
does know how can accomplish this?
thanks! noga
so make answer out of comment, there 2 things can depending on matlab release using:
option 1: r2013a , earlier
i suggest modifying built-in imregister
function forcing tform
output , save function under name.
for example:
function [movingreg,rreg,tform] = imregister2(varargin)
save that, add path , you're go. if type edit imregister
notice 1st line calls imregtform geometric transformation required, while last line calls imwarp, apply geometric transformation. leads option 2.
option 2: r2013b , later
well in case can directly use imregtform
tform object , use imwarp
to apply it. easy isn't it?
hope makes things clearer!
Comments
Post a Comment