Register two bigimages with apply

2 ビュー (過去 30 日間)
Michael Brehler
Michael Brehler 2020 年 12 月 8 日
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 件)

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by