Image mask from patch

9 ビュー (過去 30 日間)
Megan
Megan 2016 年 5 月 11 日
回答済み: Image Analyst 2016 年 5 月 12 日
I have computed 2d triangulation and vertex data pertaining to a projection of a 3d object. I need to create an image binary mask , where pixels inside the projected faces are white. The generation of the mask has to be computed automatically as it falls inside a solver. I know it is possible to use poly2mask or inpolygon, however I have a large number of faces (n=9168) which makes these functions unusable due to speed considerations.I was wondering if it was somehow possible to use matlabs graphing patch function to create a mask.Any help that you could offer would be appreaciated.

回答 (1 件)

Image Analyst
Image Analyst 2016 年 5 月 12 日
It took 37 seconds in a little simulation I did. Clearly not fast enough for video rates, if that's what you need. You may have to just live with it or else get the Parallel Processing Toolbox and do the processing on the GPU or with parallel workers.

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by