write an imgae of type gpuarray

2 ビュー (過去 30 日間)
OMAR ELHARROUSS
OMAR ELHARROUSS 2019 年 3 月 18 日
コメント済み: OMAR ELHARROUSS 2019 年 3 月 19 日
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

採用された回答

Edric Ellis
Edric Ellis 2019 年 3 月 19 日
編集済み: Edric Ellis 2019 年 3 月 19 日
Try
imwrite(gather(res), 'myfile.jpg')
  1 件のコメント
OMAR ELHARROUSS
OMAR ELHARROUSS 2019 年 3 月 19 日
Thank youu.

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by