how to read images randomly from each folder?

2 次查看(过去 30 天)
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

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by