www.gusucode.com > vision 源码程序 matlab案例代码 > vision/SelectImagesSpecifiedByAnIndexExample.m
%% Select Images Specified by an Index %% Read images from a folder. % Copyright 2015 The MathWorks, Inc. imgFolder = fullfile(matlabroot,'toolbox','vision','visiondata','stopSignImages'); imgSet = imageSet(imgFolder); %% Select images 2 and 4 from the image set. imgSetOut = select(imgSet, [2, 4]); %% Select every other image from the image set. imgSetOut2 = select(imgSet, 1:2:imgSet.Count);