How create function for call image?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Oman Wisni
il 1 Gen 2019
Commentato: Oman Wisni
il 2 Gen 2019
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
0 Commenti
Risposta accettata
Image Analyst
il 1 Gen 2019
Try this:
function im = inp()
[baseFileName, folder] = uigetfile('D:project/image/*.bmp');
fullFileName = fullfile(folder, baseFileName);
im = imread(fullFileName);
end
4 Commenti
Image Analyst
il 2 Gen 2019
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.
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!