Failed to generate gpu code with gpu coder because of regionprops

Hi, I am trying to generate my matlab code into cude code, but I run into trouble.
```
boxs = regionprops(bw, 'BoundingBox');%return (x,y,width,height)
```
I use the regionprops function, which is said that can be translated by gpu code. I don't know how to solve it.image_48.png

답변 (1개)

Gautam Chavali
Gautam Chavali 2020년 2월 25일

0 개 추천

Hi Zhankun,
The function 'regionprops' is not yet supported by GPU Coder.
Try using 'bwlabel' or 'bwconncomp' to suit your needs.
Thanks

카테고리

도움말 센터File Exchange에서 GPU Computing에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2020년 2월 12일

답변:

2020년 2월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by