Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How do I get the filename of an image that I loaded and store it in a string variable?

1 vue (au cours des 30 derniers jours)
Suraj Suresh
Suraj Suresh le 8 Déc 2017
Clôturé : Stephen23 le 8 Déc 2017
this is the code I used to load the image
global im im2
[path,user_cance]=imgetfile();
im=imread(path);
Is there a way that I can get the filename of the image, say for example 'imgname.bmp', store it in a string variable say 'string sname' and then
strcmp(sname,'imgname.bmp');
if true
statement1
else
statement2
end
How can I do this or is there any other way?I am a beginner so please be elaborate. Thank you in Advance.

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by