read
augmentedImageDatastore
からデータを読み取る
説明
入力引数
auimds
— 拡張イメージ データストア
augmentedImageDatastore
拡張イメージ データストア。augmentedImageDatastore
オブジェクトとして指定します。データストアは、各バッチの観測値の MiniBatchSize
数および観測値の合計数 numObservations
を指定します。
出力引数
data
— 出力データ
table
出力データ。table として返されます。データストア auimds
がデータの全バッチを読み取る場合、table の行数は MiniBatchSize
になります。データストア内のデータの最終バッチについて、numObservations
が MiniBatchSize
できれいに割り切れない場合、read
は残りのすべての観測値を含む部分バッチを返します。
テーブルの最初の列 "input"
は、各イメージのデータを返します。auimds
が以下のタイプのデータを読み取る場合、テーブルの 2 番目の列は "response"
になります。
ラベル付きイメージ データを含むイメージ ファイル (ファイル名がイメージ データストアによって指定されている場合)
カテゴリカル ラベルまたは数値応答を含む数値配列
1 つ以上の応答を含む table
info
— 読み取りデータに関する情報
構造体配列
読み取りデータに関する情報。構造体配列として返されます。構造体配列には、以下のフィールドを含めることができます。
フィールド名 | 説明 |
---|---|
Filename | 文字ベクトルの cell 配列。各要素は、対応するイメージのパス文字列、ファイル名、およびファイル拡張子を含む完全解決済みパスです。このフィールドは、 |
FileSize | 数値ベクトル。各要素は、対応するイメージの合計ファイル サイズ (バイト単位) です。MAT ファイルの場合、 |
Label | categorical ベクトル。各要素は、対応するイメージのカテゴリ ラベルです。このフィールドは、 |
MiniBatchIndices | 数値ベクトル。各要素は、配列内の入力イメージのインデックスです。このフィールドは、 |
バージョン履歴
R2018a で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)