data Augmentation for resizing images differently to reduce overfitting

2 ビュー (過去 30 日間)
Matpar
Matpar 2019 年 11 月 13 日
コメント済み: Matpar 2019 年 11 月 19 日
Hi All,
thanx for assiting me in advance! i have some code i am understanding and needs some clarification on the pixel range and what it does!
can you help me understand this please!
here's the code!
pixelRange = [-30 30];
imageAugmenter = imageDataAugmenter( ...
'RandXReflection',true, ...
'RandXTranslation',pixelRange, ...
'RandYTranslation',pixelRange);
augimdsTrain = augmentedImageDatastore(inputSize(1:2),imdsTrain, ...
'DataAugmentation',imageAugmenter);

回答 (1 件)

Jyothis Gireesh
Jyothis Gireesh 2019 年 11 月 19 日
RandXTranslation and RandYTranslation are name-value pairs used to indicate the horizontal and vertical translations to be applied to the images for augmentation. For 2-element numeric vector inputs, the translation value is drawn from a uniform distribution specified by the range given in the name-value pair.
In this case the range is specified by the variable pixelRange.
Please refer to the following document link on imageDataAugmenter to get a better understanding about the augmentation procedure.
  1 件のコメント
Matpar
Matpar 2019 年 11 月 19 日
Ok, checking the link and thank you for responding to my questions

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by