Image mask from patch

5 views (last 30 days)
Megan
Megan on 11 May 2016
Answered: Image Analyst on 12 May 2016
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.

Answers (1)

Image Analyst
Image Analyst on 12 May 2016
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.

Categories

Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!