How can i make an array of 100 images ?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to perform some feature vector operations on 100 images directly , how can i do that?
0 commentaires
Réponses (3)
Guillaume
le 8 Déc 2014
You didn't give enough information to answer in any detail (for example what is the size of the images, how many channels, how are they stored, etc.), so:
If the images are all the same size concatenate them in a new dimension (dim 3 for single channel, dim 4 for RGB) with cat
If they're all different size, use a for loop.
4 commentaires
Walter Roberson
le 6 Fév 2018
Yes, you can use imread() with tif images. However, tif can store multiple images in the same file, so in some circumstances you might need to take extra steps.
Stalin Samuel
le 8 Déc 2014
Modifié(e) : Stalin Samuel
le 8 Déc 2014
for example if u have images named as 1.jpg,2.jpg,....n.jpg then
for i = 1:no_of_images currentimage = imread( sprintf('ur_image directory_folder/%d.JPG',i) ); //your feature calculation feature(i)=your calculation end
0 commentaires
Voir également
Catégories
En savoir plus sur Geometric Transformation and Image Registration 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!