Efficient method of summing the values in multiple images on GPU?

1 回表示 (過去 30 日間)
Christopher Desmond
Christopher Desmond 2016 年 6 月 27 日
コメント済み: Brendan Hamm 2016 年 7 月 7 日
I have a series of images sitting on GPU in a 71x71x5000 matrix.
Is there an efficient method of finding the sum of all elements in each 71x71 image on the GPU?
I wanted to do something similar to this but it isn't so simple.
sums = pagefun(@sum, images)

採用された回答

Brendan Hamm
Brendan Hamm 2016 年 6 月 28 日
I don't have a machine with the GPU capabilities with me right now, but I think this should work:
sums = pagefun(@(x) sum(x(:)),images);
  7 件のコメント
Christopher Desmond
Christopher Desmond 2016 年 7 月 1 日
If you have time, would you mind taking a look at another question I have. Its the only other problem I've encountered working with the GPU.
Thanks for all of your help.
Brendan Hamm
Brendan Hamm 2016 年 7 月 7 日
Unfortunately, I will not have access to my GPU machine for a few weeks here. I'd be more than happy to make some suggestions on your other post after this though. Likely someone else will get back to you before then.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGPU Computing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by