write an imgae of type gpuarray

1 vue (au cours des 30 derniers jours)
OMAR ELHARROUSS
OMAR ELHARROUSS le 18 Mar 2019
Commenté : OMAR ELHARROUSS le 19 Mar 2019
Hi,
plseae i need to write an image where the types is gpuarray. the originale image if 192*256*3 uint8 but i have like result an image (192*256*3 gpuArray ) that can be visualized with imshow() and am looking for save this image but this error shown:
Error using imwrite (line 420)
Expected DATA to be one of these types:
numeric, logical
Instead its type was gpuArray.
test.png

Réponse acceptée

Edric Ellis
Edric Ellis le 19 Mar 2019
Modifié(e) : Edric Ellis le 19 Mar 2019
Try
imwrite(gather(res), 'myfile.jpg')
  1 commentaire
OMAR ELHARROUSS
OMAR ELHARROUSS le 19 Mar 2019
Thank youu.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by