gpuArray/imresize Input array has too many elements
古いコメントを表示
I am doing alot of image processing and to speed things up I am using my GPU to help with that
I got an error and I couldn't find help for it anywhere so I decided to ask a question
I made a gpuArray of size 250x250x3x1000 (these are concatenated images so 4D Array) or larger and I tried running imresize on it.
I was following the advice of "Joss Knight" who I have seen answering many questions on GPU related processing and it helped me greatly to speed up my computation.
I was wondering what reason is there that I am getting this error and is there a solution or a workaround for it?
Thank you very much.
Edit:
I just found something.
Dim= cat(4,ImageGroupContainer{ : } ));
So I use cat and when I call size(Dim), I get 273, 273, 3, 1095
and I call numel on it, it gives "244827765"
can't use gpuArray/imresize with it
?
3 件のコメント
Joss Knight
2021 年 1 月 6 日
What size are you trying to resize these 1000 images to? You've already got a gigabyte of data here.
Shammakh Naseer
2021 年 1 月 6 日
Shammakh Naseer
2021 年 1 月 6 日
編集済み: Shammakh Naseer
2021 年 1 月 6 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Parallel and Cloud についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!