Image mask from patch
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Image Analyst
el 12 de Mayo de 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 comentarios
Ver también
Categorías
Más información sobre Graphics Performance en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!