image proccessing for the first image (CPU and GPU)

asked 2016-06-13 06:01:09 -0600

Lunarix gravatar image

updated 2016-06-13 06:29:51 -0600

Hello, Why does the image proccessing of the first image takes so long on a cpu and gpu? Probably every Mat needs to be initialized, but why does it take so long? esp. i use cuda for gpu and it takes 5x longer than the cpu version for the first image and same algorithm (sobel).

Does anyone know why image proccessingtakes so long for the first image of a video? Lunarix

edit retag flag offensive close merge delete

Comments

In opencl some opencl code compilation are necessary at first call and not for next call. I think (may be I'm wrong) that if your architecture is not in cmake var ( CUDA_ARCH_BIN) it could be same

LBerger gravatar imageLBerger ( 2016-06-13 06:27:12 -0600 )edit