重复使用叠加图像?

时间:2014-02-13 14:09:04

标签: image matlab image-processing

基本上我有两个图像,我使用控制点注册叠加;代码的最后部分是:

[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])

我想进一步使用这个最终图像(不需要保存)。等;

cpselect(final_image_from_above, new_unregistered_image)

但是,我尝试了getframe()saveas()等。但问题是图像的质量变得非常糟糕。

谢谢,

1 个答案:

答案 0 :(得分:0)

您最好在矩阵域中操作图像,即将它们视为矩阵(mxnx3)并执行重叠。然后你可以获得最终图像作为矩阵。它的质量会很好。

相关问题