Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Re-using an overlayed image?

1 Ansicht (letzte 30 Tage)
Ramo
Ramo am 13 Feb. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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,

Antworten (1)

Alex Taylor
Alex Taylor am 13 Feb. 2014
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 Kommentare
Image Analyst
Image Analyst am 14 Feb. 2014
I thought you said "dont need to save it" - anyway, to save, have you tried imwrite()?
Ramo
Ramo am 15 Feb. 2014
Yes I dont have to save it if I can re-use the final image without saving it.

Community Treasure Hunt

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

Start Hunting!

Translated by