Hy, I want create function for input the image but, when I run my code cannot read images. Can help me fix my code? here my code..
function im = inp(uigetfile,fullfile)
[fnameN, pathname]=uigetfile('D:project/image/.bmp');
fname=fullfile(pathname, fnameN);
im=imread(fname);
end
thanks, any advanced will be must appreciated

 채택된 답변

Image Analyst
Image Analyst 2019년 1월 1일

1 개 추천

Try this:
function im = inp()
[baseFileName, folder] = uigetfile('D:project/image/*.bmp');
fullFileName = fullfile(folder, baseFileName);
im = imread(fullFileName);
end

댓글 수: 4

Oman Wisni
Oman Wisni 2019년 1월 1일
Thank you. It's work :)
Oman Wisni
Oman Wisni 2019년 1월 1일
@Image Analyst, I have another questions. I create Gui in matlab, it very easy to use because can read all function I have. So Im not need create many code to declarad what I want. Just enough call function and it works.
I want call all my function using php, is it possible the php can call the GUI include all my function?
thanks
Image Analyst
Image Analyst 2019년 1월 2일
If the original question is Answered, can you click the "Accept this question" link?
Sorry, I don't use php or know anything about it. You should ask a new question in a new thread and use php in the subject line and tag, and maybe someone else will help you.
Oman Wisni
Oman Wisni 2019년 1월 2일
Yes sir, I will trying to ask with new question. thanks for your answer, I already accepted your answer :)

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

질문:

2019년 1월 1일

댓글:

2019년 1월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by