Re-using an overlayed image?

Basically I had two images which I overlayed using control point registration; the final part of the code is :
[registered2, xdata, ydata] = imtransform(unregistered1, tform,...
'FillValues', 255);
figure; imshow(registered2, 'XData', xdata, 'YData', ydata)
hold on
imshow(unregistered);
ylim = get(gca, 'YLim');
set(gca, 'YLim', [0.5 ylim(2)])
set(gca,'XLim',[0 7000])
I want to further use this final image (dont need to save it). Like;
cpselect(final_image_from_above, new_unregistered_image)
However, i have tried getframe(), saveas(), etc. But the problem with that was the quality of the image gets very bad.
Thanks,

回答 (1 件)

Alex Taylor
Alex Taylor 2014 年 2 月 13 日

0 投票

Take a look at imfuse in the image processing toolbox. If you use the 'blend' display option, the resulting image output will be a 50/50 alpha blended version of the two input images.

3 件のコメント

Ramo
Ramo 2014 年 2 月 14 日
Use fuse where?? The question was how to use/save the final image after 'hold on'. my final image is two not fully overlayed images. Now i need to save it so i can use it again, or just use it again without saving it! thanks,
Image Analyst
Image Analyst 2014 年 2 月 14 日
I thought you said "dont need to save it" - anyway, to save, have you tried imwrite()?
Ramo
Ramo 2014 年 2 月 15 日
Yes I dont have to save it if I can re-use the final image without saving it.

この質問は閉じられています。

質問済み:

2014 年 2 月 13 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by