Efficient method of summing the values in multiple images on GPU?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Christopher Desmond
el 27 de Jun. de 2016
Comentada: Brendan Hamm
el 7 de Jul. de 2016
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)
0 comentarios
Respuesta aceptada
Brendan Hamm
el 28 de Jun. de 2016
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 comentarios
Brendan Hamm
el 7 de Jul. de 2016
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.
Más respuestas (0)
Ver también
Categorías
Más información sobre GPU Computing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!