Info

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

Reading images in matlab

2 vues (au cours des 30 derniers jours)
Balaji M. Sontakke
Balaji M. Sontakke le 13 Déc 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
Am using a database which is gathered from 100 persons, 3 images per persons of each of 4 different activities like act,bag,norm and ice. I want to read those images from a folder but I don't understand how to read it, following is the format of those images
p1_left_act_1 to p1_left_act_3,
p1_left_bag_1 to p1_left_bag_3,
p1_left_norm_1 to p1_left_norm_3,
p1_left_ice_1 to p1_left_ice_3

Réponses (1)

KSSV
KSSV le 13 Déc 2017
images = dir('.*jpg') ; % give your image extension
N = length(images) ; % total number of images
for I = 1:N % loop for each image
thisimage = images(I).name ;
% do what you want
end

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