8
我在MATLAB 2010b中创建高斯金字塔。我想显示图像提到here相同的图案。在MATLAB中以不同尺寸显示图像
我试图使用imresize
,truesize
,但获取所有图像大小相同。有人可以帮我解决这个问题吗?
我在MATLAB 2010b中创建高斯金字塔。我想显示图像提到here相同的图案。在MATLAB中以不同尺寸显示图像
我试图使用imresize
,truesize
,但获取所有图像大小相同。有人可以帮我解决这个问题吗?
您可以使用FEX file“与多个图像的真实大小imshow”来回答你的问题......
编辑:下面的代码将在图的右下部分产生的插曲:
clear imagesCellArray
mand = imread('mandelbrot_set.jpg'); % read image
dim = 3;
[imagesCellArray{1:dim,1:dim}] = deal(mand); % create smaller images by imresize
for iRow = 1:dim
for iCol = 1:dim
imagesCellArray{iRow,iCol} = imresize(imagesCellArray{iRow,iCol},1/(1.5*(iCol*iRow)));
end
end
% plot with imshowTruesize - true aspect ratio is preserved
margins = [25 25];
Handles = imshowTruesize(imagesCellArray,margins);
for iRow = 1:dim
for iCol = 1:dim
axis(Handles.hSubplot(iRow,iCol),'on')
end
end
我不能给定的代码转换为显示你下imshowTruesize标题(4之一)所示的图像。它显示的结果与突出显示的结果相同(第三个)。 – sattu
尝试将代码添加到答案中,它应该生成右下图。此外,如果这回答了您的问题,您可以选择接受它,方法是单击刚才在#号下面的V标志 – bla