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…
This post series is the Solutions of the Learning OpenCV 3 written by Adrian Kaehler & Gary Bradski Chapter 2: Introduction OpenCV For this chapter, I prepare Cmake file to build the example code
This post series is the Solutions of the Learning OpenCV 3 written by Adrian Kaehler & Gary Bradski Chapter 1: Overview In this chapter shows how to install OpenCV in your computer. I use Ubuntu OS, so that I write a shell script for the installing OpenCV you can use it easily.
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install build-essential -y
sudo apt-get install cmake -y
sudo apt-get install libopenblas-dev -y
sudo apt-get install git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev -y
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev -y
sudo apt-get install libboost-all-dev -y
sudo apt-get install libncurses5-dev libncursesw5-dev -y
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
sudo make install
sudo apt-get install libboost-all-dev