BGR to RGB with CUDA | CUDA and OpenCV

CUDA and OpenCV

BGR to RGB

When I learning CUDA, I always work with random generated arrays and matrices. Today, I want to try real-life problems. In this example, I try to convert BGR to RGB. BGR is OpenCV color format. But some application and libraries use RGB such as OpenGL. I will read simple example image and I will send images data to GPU and I will change color channels with using CUDA.

I use lena.png

Code :

 

Leave a Reply

Your email address will not be published. Required fields are marked *