roipoly and imdilate for multiple regions without "for" loop- Is there any faster way?
1 view (last 30 days)
Show older comments
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
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!