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.
Image mask from patch
5 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!