Failed to generate gpu code with gpu coder because of regionprops

1 visualización (últimos 30 días)
zhankun wang
zhankun wang el 12 de Feb. de 2020
Respondida: Gautam Chavali el 25 de Feb. de 2020
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

Respuestas (1)

Gautam Chavali
Gautam Chavali el 25 de Feb. de 2020
Hi Zhankun,
The function 'regionprops' is not yet supported by GPU Coder.
Try using 'bwlabel' or 'bwconncomp' to suit your needs.
Thanks

Categorías

Más información sobre Matrix Computations en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by