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
9 次查看(过去 30 天)
显示 更早的评论
I want to use augmentation to my dataset
0 个评论
回答(1 个)
Krishna
2024-8-25
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,
https://in.mathworks.com/help/deeplearning/ug/image-augmentation-using-image-processing-toolbox.html
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!