Help CenterHelp Center
Return shuffled version of datastore
Since R2020a
shuffle(ds)
example
shuffle(ds) returns a randomly shuffled version of the input datastore.
ds
collapse all
Set the location of the image and pixel label data.
dataDir = fullfile(toolboxdir('vision'), 'visiondata'); pxDir = fullfile(dataDir, 'buildingPixelLabels');
Create a pixel label datastore.
classNames = ["sky" "grass" "building" "sidewalk"]; pixelLabelID = [1 2 3 4]; pxds = pixelLabelDatastore(pxDir, classNames, pixelLabelID);
Create a new randomly shuffled datastore.
shpxds = shuffle(pxds);
boxLabelDatastore
pixelLabelDatastore
pixelLabelImageDatastore
Datastore with labeled data for training a semantic segmentation network or an object detection network, specified as a boxLabelDatastore, pixelLabelDatastore, or a pixelLabelImageDatastore object.
Introduced in R2020a
objectDetectorTrainingData
datastore
この例の変更されたバージョンがあります。編集された方の例を開きますか?
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office