roipoly and imdilate for multiple regions without "for" loop- Is there any faster way?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!