Register two bigimages with apply
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Geometric Transformation and Image Registration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!