how to Read an image from command window
조회 수: 2 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
Walter Roberson
2014년 4월 9일
[filename, pathname] = uigetfile('*.tif');
fullname = fullfile(pathname, filename);
ImageData = imread(fullname);
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!