Skip to content

f0rkb0mbZ/opencv-image-stitching-oneapi

Repository files navigation

OpenCV Image Stitching OneAPI

A demo of running OpenCV Image Stitching in Intel OneAPI Devcloud

Detailed Installation process is described here.

Compile the program

The compilation script is given below:

compile.sh

#!/usr/bin/env bash
export PKG_CONFIG_PATH="/home/u59912/opencv-bin/lib/pkgconfig:$PKG_CONFIG_PATH"

echo "OpenCV Version:"

pkg-config --modversion opencv4

dpcpp stitch.cpp -o stitch `pkg-config --cflags --libs opencv4`

echo "Compilation Finished!"

Run the script:

$ chmod +x compile.sh
$ ./compile.sh

Run the Program

The run script is given below:

run.sh

#!/usr/bin/env bash
source /opt/intel/inteloneapi/setvars.sh --force

export LD_LIBRARY_PATH="/home/u59912/opencv-bin/lib:$LD_LIBRARY_PATH"

cd ~/image-stitch-oneapi

./stitch --d3 --mode scans 1.png 2.png 3.png 4.png 5.png

printf "\nImage Stitching Completed\n"

For the demo, 5 pictures from google earth is used.

Submit the script to DevCloud as a job:

$ chmod +x run.sh
$ qsub run.sh # CPU Job
$ qsub -l nodes=1:gpu:ppn=2 -d . run.sh # GPU job

Get Result

Output image is saved as result.jpg.

About

Running OpenCV Image Stitching in Intel Devcloud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages