Generating C\C++ code for regionprops()

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

Sean de Wolski
Sean de Wolski 2014년 7월 8일
편집: Sean de Wolski 2014년 7월 8일
Yes, it appears regionprops is not supported. What properties do you want to calculate?

댓글을 달려면 로그인하십시오.

답변 (1개)

Anand
Anand 2014년 7월 8일

1 개 추천

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

Vimal
Vimal 2014년 7월 8일
Hi Anand!
Thanks for the quick response.
Currently we are targeting embedded platforms while in the future we may want to run our code on a Linux platform on the cloud.
Do you have any suggestions for working around the issue for now? I really need the following four properties in order to make progress: 'Area', 'Eccentricity', 'Solidity', 'MeanIntensity'
Thanks,
-Vimal
Vignesh
Vignesh 2014년 7월 8일
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 2014년 7월 8일
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.

댓글을 달려면 로그인하십시오.

질문:

2014년 7월 8일

댓글:

2014년 7월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by