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!