Resize and Convert Image to grayscale with Augmented Image Datastore using Matlab returning error

Please provide the exact error message for me to assist you better.

Related articles:

Resize and Convert Image to Grayscale with Augmented Image Datastore using Matlab returning error
Image processing is a crucial task in computer vision, and Matlab is known for its robust tools for visualizing and analyzing data. The Augmented Image Datastore function is an important feature in Matlab's Image Processing Toolbox for generating random variations of images. The function allows for image augmentation and is helpful in training machine learning models.