Generating C\C++ code for regionprops()

1 visualización (últimos 30 días)
Vimal
Vimal el 8 de Jul. de 2014
Comentada: Sean de Wolski el 8 de Jul. de 2014
Hi,
I checked the documentation for image processing toolbox that lists all functions that can be used with Matlab Coder and saw no mention of regionprops(). http://www.mathworks.com/help/images/list-of-supported-functions-with-usage-notes.html
Does the above mean that I can't generate C++ code for regionprops using Matlab Coder?
Thanks,
-Vimal
  1 comentario
Sean de Wolski
Sean de Wolski el 8 de Jul. de 2014
Editada: Sean de Wolski el 8 de Jul. de 2014
Yes, it appears regionprops is not supported. What properties do you want to calculate?

Iniciar sesión para comentar.

Respuestas (1)

Anand
Anand el 8 de Jul. de 2014
Vimal, that's right. At the moment, regionprops does not support code generation. We have noted this as a possible future enhancement.
It would be really helpful if you can answer the following question:
What processor are you targeting? Are you generating code to run on a machine that can run MATLAB (like a Windows/Linux/Mac machine) or are you generating code to run on an embedded processor (like an ARM processor).
Thanks,
Anand
  3 comentarios
Vignesh
Vignesh el 8 de Jul. de 2014
Have you tried using vision.BlobAnalysis system object in Computer Vision System Toolbox? It outputs fewer statistics than regionprops so you might have to calculate some statistics yourself using the label matrix.
Sean de Wolski
Sean de Wolski el 8 de Jul. de 2014
Mean Intensity and Area should be pretty straight forward with supported ML code (it's just looping indexing and summing over your label image). The other two would require more effort.

Iniciar sesión para comentar.

Categorías

Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by