Getting an image

4 次查看(过去 30 天)
aravind`
aravind` 2012-3-15
How to get image from a source without giving its url in matlab. Like a browse button. Can anyone help me ?
  1 个评论
Thomas
Thomas 2012-3-15
is your image on a website or on a path in the local machine?

请先登录,再进行评论。

采纳的回答

Thomas
Thomas 2012-3-15
If you image is on a path in the local machine you can import it:
File> Import Data
Choose:
Enable:All Files(*.*)
Select your particular image, it will give you options to create Variables matching preview, Click finish and all the data from the image will be loaded in a variable of size (MxNxZ)
  2 个评论
aravind`
aravind` 2012-3-15
Thank you for your response sir, i want it in coding. i have created a gui. in that there should be a button which will act like a browse button.(for getting image from local machine)
Thomas
Thomas 2012-3-15
doc uigetfile

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Import, Export, and Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by