Image mask from patch
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Image Analyst
le 12 Mai 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.
0 commentaires
Voir également
Catégories
En savoir plus sur Graphics Performance dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!