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!