Can I use roipoly on one image and get it to apply to multiple?

So basically what the question says. Can I use roipoly on one main image, and then get that created mask to apply to multiple other images? I am having trouble figuring out how to do so if it is possible. All insights are helpful! Thanks in advance

 Accepted Answer

Yes. The output of roiploy is a binary mask. You can do whatever you'd like with that mask, including applying it to other images.

3 Comments

what is the most efficient way to do that? Like in what ways can I define it any apply it to the other images that I'm generating?
You do not need to call roipoly again. Capture the output of roipoly in a variable, and then use that mask the same way you used it in the original image.

Sign in to comment.

More Answers (0)

Products

Asked:

on 18 May 2023

Commented:

on 19 May 2023

Community Treasure Hunt

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

Start Hunting!