how can i augment my images data and save it in this path : C:\Users\hp\Desktop\\My papers\CNN 9\2\Data\S\Images

12 次查看(过去 30 天)
I want to use augmentation to my dataset

回答(1 个)

Krishna
Krishna 2024-8-25,19:41
Hello,
I understand that you want to know how to do data augmentation in MATLAB. There are a number of ways in which you can use data augmentation in MATLAB.
First let’s discuss how to create your own data augmentation function.
If you look at the following example in the data augmentation section, they have created a custom data augmenter function and then used transform function on the Datastore to use fly-by data augmentation. This means when the training happens the training data (to which the transform function is applied) uses the data augmentation function to the datastore images without storing them. Therefore, there is no need to store the augmented images while working in MATLAB.
Please go through the following documentation to learn more regarding transform function,
Also, they have used function like randomAffine2d to horizontally flip the image and add some scaling. You can go through the documentation to learn more,
Apart from this there is also ‘imageDataAugmentor’ function where you can add augmentation directly like resizing, rotation, reflection etc. Please look at this documentation to learn more,
Finally, you can view this documentation to learn about various types of data augmentation you can use,
Also please go through the following documentation to learn more about how to ask question on MATLAB answer and get a fast response,
Hope this helps.

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by