matlab怎么同时显示imshow 两幅图片
2015-03-18 14:45
585 查看
matlab怎么同时显示imshow 两幅图片
方法一:subplot()函数
subplot(2,1,1);
subplot(2,1,2);
分上下或者左右显示两张图片...
例如:
原始图片分两个窗口显示:
hehe=uint8(hehe);
figure(1)
imshow(he), title('原始图像');%显示原始图像
figure(2)
imshow(hehe), title('SLIC分割k=400,m=40');%显示超像素分割图像
两张图片在一个窗口中显示:
hehe=uint8(hehe);
figure(1)
subplot(2,1,1);imshow(he),title('原始图像'); %显示原始图像
%figure(2)
subplot(2,1,2);imshow(hehe),title('SLIC分割k=400,m=40');
%显示超像素分割图像
方法二:montage()函数
使用montage()函数就可,不过要求两幅图像大小必须一样的.cat是个好办法,把2个数据连接在一起。具体使用请help
montage.图示中的例子的代码如下:
gray01=rgb2gray(imread('img01.jpg'));
gray02=rgb2gray(imread('img12.jpg'));
pic=cat(2,gray01,gray02);
figure;
montage(pic)
水平排列:
pic=cat(2,gray01,gray02);
figure, imshow(pic);
垂直排列:
pic=cat(1,gray01,gray02);
figure, imshow(pic);
街上上述例子程序如下:
imshow(he), title('原始图像'); %显示原始图像
imshow(hehe), title('SLIC分割k=400,m=40');
pic=cat(2,he,hehe);
figure, imshow(pic);
水平排列:
垂直排列:
更多,请关注:http://blog.csdn.net/tiandijun/,欢迎交流!
方法一:subplot()函数
subplot(2,1,1);
subplot(2,1,2);
分上下或者左右显示两张图片...
例如:
原始图片分两个窗口显示:
hehe=uint8(hehe);
figure(1)
imshow(he), title('原始图像');%显示原始图像
figure(2)
imshow(hehe), title('SLIC分割k=400,m=40');%显示超像素分割图像
两张图片在一个窗口中显示:
hehe=uint8(hehe);
figure(1)
subplot(2,1,1);imshow(he),title('原始图像'); %显示原始图像
%figure(2)
subplot(2,1,2);imshow(hehe),title('SLIC分割k=400,m=40');
%显示超像素分割图像
方法二:montage()函数
使用montage()函数就可,不过要求两幅图像大小必须一样的.cat是个好办法,把2个数据连接在一起。具体使用请help
montage.图示中的例子的代码如下:
gray01=rgb2gray(imread('img01.jpg'));
gray02=rgb2gray(imread('img12.jpg'));
pic=cat(2,gray01,gray02);
figure;
montage(pic)
水平排列:
pic=cat(2,gray01,gray02);
figure, imshow(pic);
垂直排列:
pic=cat(1,gray01,gray02);
figure, imshow(pic);
街上上述例子程序如下:
imshow(he), title('原始图像'); %显示原始图像
imshow(hehe), title('SLIC分割k=400,m=40');
pic=cat(2,he,hehe);
figure, imshow(pic);
水平排列:
垂直排列:
更多,请关注:http://blog.csdn.net/tiandijun/,欢迎交流!
相关文章推荐
- matlab怎么同时显示imshow 两幅图片
- MATLAB如何在同一窗口中显示两幅图片
- matlab的imshow()如何以合适大小显示图片
- vc win32 gdi+ 怎么显示PNG图片
- matlab 轮流画多个图 不显示图片 保存为eps(demo)
- javascript 网页设计 怎么在同一位置显示几张不同的图片(图片自动变换)
- matlab中用imshow()显示图像与图像矩阵的数据类型的关系
- 【File Field控件】上传图片的同时直接显示图片的属性设置方法
- Matlab显示图片的Edge
- 奇怪,Blend3 中怎么动态显示image图片呢?
- js 实现点击浏览图片按钮时同时显示图片
- 网页图片不能显示怎么办
- Visual Basic 2005——如何在DataGridView控件的储存格中同时显示出文字与图片
- [VB.NET].NET精简框架下用VB.NET怎么实现在picturebox上显示不同图片???
- 怎么将验证码图片保存到本地或是用Image显示
- 修改图片并不改变图片路径怎么显示修改后的图片
- Visual Basic 2005——如何在DataGridView控件的储存格中同时显示出文字与图片
- javascript: 改变和控制显示的图片大小(保持比例,同时可限制高宽)
- 怎么让绑定的图片不间断滚动显示,且显示区域只显示部分图片?
- 奇怪,Blend3 中怎么动态显示image图片呢?