check filename of the input image
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Allen Ray
le 16 Oct 2016
Réponse apportée : Image Analyst
le 16 Oct 2016
I wanna make sure the filename of input image is same as what I want. I need it to get into if-else statement.
For example(some sort like this):
a = imread('img.jpg');
if(image_wanted == img.jpg) for(k =1:5) x(k) = k; end end
0 commentaires
Réponse acceptée
Image Analyst
le 16 Oct 2016
use strcmpi:
if strcmpi(image_wanted, 'img.jpg')
% Name matches
else
% Name does not match.
end
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Debugging and Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!