How to crop multiple images?
Afficher commentaires plus anciens
I need some help for multiple images cropping. I used this code but it showed error and said Computer Image System Toolbox used.
In here i use this code for cropping.
imageDir = 'D:\Masters Thesis\ssss';
ssss = imageSet(imageDir);
for k = 1 : ssss.Count
theImage = imread(ssss);
croppedImage = imcrop(theImage,[646, 1291, 481, 600]);
baseFileName = sprintf('Image #%d.png', k);
fullFileName = fullfile(imageDir, baseFileName);
imwrite(croppedImage, fullFileName);
end
can anyone help me to solve this prolem.
TIA
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Get Started with Computer Vision Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!