Ask Your Question

cv::gpu:: Loop on Pixels

asked 2018-03-05 07:20:04 -0500

cjacquel gravatar image


How to make a loop on each pixels of the images; in the GPU, on a cv::gpu::GpuMat ?

Thank you, cjacquel

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2018-03-05 07:27:01 -0500

berak gravatar image

no, you can't access pixels on the gpu (same for GpuMat or UMat) , only on the cpu.

either: find out, if there's something doing what you want in the gpu api already, and use that (chances are high, that you only missed it !)

or: download it from the gpu, do your processing, upload again (expensive)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-03-05 07:20:04 -0500

Seen: 180 times

Last updated: Mar 05 '18