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

 Risposta accettata

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 Commenti

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.
Thanks! Got it figured out

Accedi per commentare.

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by