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

10 views (last 30 days)
I want to use augmentation to my dataset

Answers (1)

Krishna
Krishna on 25 Aug 2024
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.

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!