- Read each image from the folders and convert the image to a grayscale matrix if it isn't already.
- Flatten each image matrix (32x32) into a vector (1024x1).
- Store each vector in a larger matrix (1024x200) where each column represents a flattened image.
- Loop through each folder and image to process them.