This repository stores the project for the course Parallel and Distributed Computing at the Universidad Nacional De Colombia.
This project aims to test different ways to parallelize a algorithm to downsample images in 720p, 1080p and 4K to 480p.
First of all, you need to install OpenCV for C++: How to install
When dependencies are install, to compile the code:
g++ image_scaling.cpp -o image_scaling -std=c++11 `pkg-config --cflags --libs opencv` -lpthreadTo run:
./image_scaling ./image1_720p.jpg ./result.jpg 4 Nearestrun script:
bash script.shThis accepts 3 parameters:
- Source input image path.
- Result image path.
- Number of threads.
- Algorithm - Nearest / Bilinear