This will enable users to crop a batch of images stored in a single folder. The function is based on Matlab's imcrop and extends its capabilities. The allowed image types are bmp, gif, hdf, jpg, jpeg, jp2, jpx, pbm, pcx, pgm, png, pnm, ppm, ras, tif, tiff, xwd.
The user picks a folder and the function will check if it contains any figures. If more than one figure type is found, the user will pick which type to crop.
Then, the user will interactively crop the first figure (similarly to imcrop). Finally, upon approval, all the images in the folder will be cropped using the same coordinates.
Amir Paster (2021). crop_multiple_images(images_folder) (https://www.mathworks.com/matlabcentral/fileexchange/59707-crop_multiple_images-images_folder), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!