how to read images randomly from each folder?

1 visualización (últimos 30 días)
bamini thavarajah
bamini thavarajah el 22 de En. de 2018
Respondida: KSSV el 22 de En. de 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

Respuestas (1)

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

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by