필터 지우기
필터 지우기

how to Read an image from command window

조회 수: 2 (최근 30일)
raviraja
raviraja 2014년 4월 9일
댓글: Prathveraj Shetty 2019년 3월 3일
Is there any way to read an image from command window to matlab .m file..?
that means if we give an image name in command window or any GUI the image will go to running matlab .m file
Ex: in command window if i give cameraman.tif my algorithm has to take that as input image

채택된 답변

Walter Roberson
Walter Roberson 2014년 4월 9일
[filename, pathname] = uigetfile('*.tif');
fullname = fullfile(pathname, filename);
ImageData = imread(fullname);
  댓글 수: 2
raviraja
raviraja 2014년 4월 9일
Thank you
Prathveraj Shetty
Prathveraj Shetty 2019년 3월 3일
can you show with an example if you dont mind

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by