Failed to generate gpu code with gpu coder because of regionprops
1 回表示 (過去 30 日間)
古いコメントを表示
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/271112/image_48.png)
![image_48.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/271112/image_48.png)
0 件のコメント
回答 (1 件)
Gautam Chavali
2020 年 2 月 25 日
Hi Zhankun,
The function 'regionprops' is not yet supported by GPU Coder.
Try using 'bwlabel' or 'bwconncomp' to suit your needs.
Thanks
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Computations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!