A sample project for moil system 6 views display, tested both on ubuntu 18.04 and raspberrypi( Raspbian Buster )
For RaspberryPi, please download Raspbian opetating system image : https://www.raspberrypi.org/downloads/raspbian/ following the installing steps : https://www.raspberrypi.org/documentation/installation/installing-images/ or tutorial : https://oranwind.org/-raspberry-pi-win32-disk-imager-shao-lu-sd-qia-jiao-xue/
If you already have Opencv installed, the followings can be skipped. Opencv can be version 3.x.x or version 4.x.x.
sudo apt update
sudo apt upgrade
sudo apt install build-essential cmake pkg-config
sudo apt install libjpeg-dev libpng-dev libtiff-dev
sudo apt install software-properties-common
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt update
sudo apt install libjasper1 libjasper-dev
sudo apt update
sudo apt install libgtk-3-dev
sudo apt install libatlas-base-dev gfortran
sudo apt install libopencv-dev python-opencv
For Raspberry Pi, please replace libmoildev.a with libmoilde_rpi.a
cd lib
cp libmoildev_rpi.a libmoildev.a
For NVIDIA Jetson TX2, please replace libmoildev.a with libmoilde_jetson.a
cd lib
cp libmoildev_jetson.a libmoildev.a
mkdir build
cd build
cmake ..
make
./mainmoil
c : start camera
0 : 6 channels view
1 : Original
2..7 : channel 1..6
8 : Panorama
up/down : alpha +/-
left/right : beta +/-
+/- : zoom +/-
r : reset alpha, beta, zoom
esc : exit
- Disk Cache
By default, MAP_CACHE_ENABLED is set as true in mainwindow.cpp for system performance consideration. Both xMaps and yMaps are generated by the calling of AnyPoint function will be store in files and read back next time. It can take about 50 sec. on Raspberry Pi for the first time.