Filter löschen
Filter löschen

how to read images randomly from each folder?

1 Ansicht (letzte 30 Tage)
bamini thavarajah
bamini thavarajah am 22 Jan. 2018
Beantwortet: KSSV am 22 Jan. 2018
I have 10 folder, each contain 100 images. I have to select 50 images from one folder and 3 random images each from the other remaining 9 folder finally 77 images should be read

Antworten (1)

KSSV
KSSV am 22 Jan. 2018
img = 1:100 ; % indices of images
iwant = randperm(length(img),3) ;

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by