I have a folder containing 100 frames. The frames contain human face. I want to crop and resize all the frames so that I could get only faces and the background is eliminated. Then, I want to store all the cropped and resized images in a folder named- "preFrames". I am new to MATLAB. Please provide the code with some explanation.