Selection of roi for multiple images

3 views (last 30 days)
I have 50 images in one folder. For one image I can select roi by clicking the mouse but now i need automatic selection of roi for multiple images.How to do this ?

Accepted Answer

Rik
Rik on 17 Dec 2019
If you want to apply the same ROI to all images: export the ROI as a logical array.
If you want to select a different ROI for each image, generate the list of file names with dir() and loop through the elements.
  12 Comments
HARISH KUMAR
HARISH KUMAR on 7 Jan 2023
okay, Thank you.
I will into it once.
Image Analyst
Image Analyst on 7 Jan 2023
Perhaps the poorly-named a is a gray scale image, not a color image.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!