声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1872|回复: 11

[GUI界面] 如何调入图像。

[复制链接]
发表于 2009-4-14 09:58 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
我做毕业设计。现在要求调入图像,并且在图像上作曲线。我现在不知道如何调入图像,希望专家给我个程序。谢谢诶
回复
分享到:

使用道具 举报

发表于 2009-4-14 14:46 | 显示全部楼层
help imread

评分

1

查看全部评分

 楼主| 发表于 2009-4-15 09:39 | 显示全部楼层
我的意思是可以通过路径调入任意图片。专家认为该怎么写
发表于 2009-4-15 16:10 | 显示全部楼层

回复 楼主 542263950 的帖子

global im
[filename, pathname] = uigetfile({'*.jpg';'*.bnp';'*.gif'},'選擇圖片')  %選擇圖片路徑
str=[pathname filename];  %合成路徑+文件名
im=imread(str);  %讀取圖片

你可以到"MATLAB中文網"看看
網址:http://www.ilovematlab.cn/index.php
或者直接去下面下載影片
應該看前三部就可以找到你需要的東西了吧
影片也是MATLAB中文網裡面的
http://www.matlabforums.cn/video ... _1/matlab_GUI_1.wmv
http://www.matlabforums.cn/video ... _2/matlab_GUI_2.wmv
~~~
http://www.matlabforums.cn/video ... 0/matlab_GUI_10.wmv

[ 本帖最后由 ChaChing 于 2009-4-15 20:50 编辑 ]
 楼主| 发表于 2009-4-15 20:19 | 显示全部楼层
这个是MATLAB7.0吗?我的6.5好像没有gui界面啊
发表于 2009-4-15 20:27 | 显示全部楼层

回复 5楼 542263950 的帖子

...
那你要怎嚜做GUI阿?
我對matlab6.5不熟,不了解
 楼主| 发表于 2009-4-15 20:45 | 显示全部楼层
饿,我是做一个用户界面可以调入图片,然后在图片中描绘曲线求出计算结果并且在用户界面上显示。你是不是用MATLAB7.0的,我用6.5都没有gui这个按钮
发表于 2009-4-15 20:52 | 显示全部楼层
help imgetfile
[filename, user_canceled] = imgetfile displays the Open Image dialog box. You can use this dialog box in imaging applications to get the name of the image file a user wants to open. The Open Image dialog box includes only files using supported image file formats (listed in imformats) and DICOM files. When the user selects a file and clicks Open, imgetfile returns the full path of the file in the return value filename and sets the user_canceled return value to FALSE. If the user clicks Cancel, imgetfile returns an empty string in filename and sets the user_canceled return value to TRUE.
发表于 2009-4-15 20:53 | 显示全部楼层

应该有的!
...6.5都没有gui这个按钮

什麽意思? GUI不是个按钮!

[ 本帖最后由 ChaChing 于 2009-4-15 20:58 编辑 ]
发表于 2009-4-15 20:53 | 显示全部楼层

回复 7楼 542263950 的帖子

影片確實是7.0教學的
基本上要用在gui上的在matlab上就可以直接執行
但是元件那些就不能放了
你先看看可不可以在matlab上跑成功
在做吧
版本會有些許差別

直接輸入guide 呼叫看看吧

[ 本帖最后由 lqbtbs 于 2009-4-15 20:55 编辑 ]
 楼主| 发表于 2009-4-15 21:52 | 显示全部楼层
我表达不好,我输入guide找到了,谢谢诶

能把gui界面的其余几个视频的网址也给我好吗

[ 本帖最后由 ChaChing 于 2009-4-15 22:01 编辑 ]
发表于 2009-4-16 09:06 | 显示全部楼层
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-18 05:11 , Processed in 0.068215 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表