Register two bigimages with apply
3 views (last 30 days)
Show older comments
I am trying to register two bigimages (histology slides that are too big to process in-memory).
I was following this guide Warp Big Image - MATLAB & Simulink (mathworks.com) which gives an good example of applying a transformation by using the "apply" function for bigimages. My problem is that I don't want to just apply a transformation. I also would like to keep the image size and location of my reference image similar to using imwarp with the option 'OutputView' (for the in-memory registration case). Is there a way to alter the example code to get a similar result?
Example for in-memory case:
ortho = imread('westconcordorthophoto.png');
unregistered = rgb2gray(imread('westconcordaerial.png'));
[optimizer,metric] = imregconfig('monomodal');
t = imregtform(unregistered, ortho, 'rigid', optimizer, metric);
Rfixed = imref2d(size(ortho));
registered = imwarp(unregistered,t,'OutputView',Rfixed);
imshowpair(ortho,registered,'blend');

Out of memory case:
bimOrtho = bigimage(ortho);
bimUnregistered = bigimage(unregistered);
%followed by warp big image example code with previous transformation t

0 Comments
Answers (0)
See Also
Categories
Find more on Geometric Transformation and Image Registration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!