Crop and save multiple images
Afficher commentaires plus anciens
Hi, there i want to crop and save images 7x7 from a folder the fullname of the folder is c:\users\michaela\Desktop\homework\2 can anyone help me with the code in matlab .I want to take a different picture it's time and crop it and this i want it for 10.000 times .How can i achive that?
5 commentaires
Walter Roberson
le 16 Mai 2021
You want to save as 7 pixels by 7 pixels ??
Which portion of the image do you want to extract out?
Is it possible that you want to resize to 7 x 7 instead of cropping to 7 x 7 ?
mixaela pozoukidou
le 16 Mai 2021
mixaela pozoukidou
le 16 Mai 2021
Image Analyst
le 7 Août 2021
Modifié(e) : Image Analyst
le 7 Août 2021
So, just to be clear, let's say you have a folder with 500 images, and each image is 1920x1080 pixels. So you are "not interested at portion of the image" which I take to mean that you want to extract out a 7x7 patch from somewhere, but don't care where. From some random location, I guess. So you want to extract a 7x7 chunk of the image from a random location in the 1920x1080 image. In the end you will have 500 7x7 "images" -- is that correct?
By the way, what good are 7x7 images? Nothing in them will be recognizable.
Walter Roberson
le 8 Août 2021
One of the reasons people take random small samples from an array is if they are doing Compressive Sensing -- though for that particular application you would usually want to know where you extracted the patch from.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Arithmetic 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!