Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image Processing on CUDA or OpenCV?

I need to develop an image processing program for my project in which I have to count the number of cars on the road. I am using GPU programming. Should I go for OpenCV program with GPU processing feature or should I develop my entire program on CUDA without any OpenCV library?

The algorithms which I am using for counting the number of cars is background subtraction, segmentation and edge detection.

like image 730
Syed Tauqeer Hasan Avatar asked Jun 24 '12 16:06

Syed Tauqeer Hasan


1 Answers

You can use GPU functions in OpenCV.

First visit the introduction about this : http://docs.opencv.org/modules/gpu/doc/introduction.html

Secondly, I think above mentioned processes are already implemented in OpenCV optimized for GPU. So It will be much easier to develop with OpenCV.

Canny Edge Detection : http://docs.opencv.org/modules/gpu/doc/image_processing.html#gpu-canny

PerElement Operations (including subtraction): http://docs.opencv.org/modules/gpu/doc/per_element_operations.html#per-element-operations

For other functions, visit OpenCV docs.

like image 127
Abid Rahman K Avatar answered Oct 27 '22 12:10

Abid Rahman K