roipoly and imdilate for multiple regions without "for" loop- Is there any faster way?

1 vue (au cours des 30 derniers jours)
Masoud
Masoud le 17 Déc 2012
Hello,
I have two 100x40 matrices, X and Y, where each row of X and Y specifies a polygon boundary points, i.e. roipoly(I, X(2,:), Y(2,:) ) gives me a mask corresponds to my second polygon.
Is there any way that I can compute the polygon masks for all my 100 polygons without a for loop?
Also I need to dilate each polygon, but both roipoly and imdilate takes a long time in a for loop.
I'm wondering if there's any faster way to calculate roipoly and dilate multiple regions.
Thanks

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by