Skip to content

tooploox/seam-carving

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project

This repository contains a working CMake based project you may use for writing your solution.

Prerequisities

All packages necessary to build the project are defined inside the Dockerfile (Ubuntu 20.04 based).

Docker Container

Building the docker image:

cd seam-carving
docker build . -t seamcarving

Running the docker container:

docker run -v $(pwd):/workdir -it seamcarving bash

The above command maps the current working directory from the host OS to the /workdir directory inside the docker container.

Building

Execute the following steps inside the docker container:

cd /workdir
cmake -S src -B build -G Ninja
cmake --build build

Running

The following command runs the built seam-carving binary (executed from the docker container):

/workdir/build/seam-carving examples/castle.jpg

The process requires path to the input image passed as a mandatory command line argument. The generated output image created by your seam-carving algorithm is saved down to the filesystem in the current runtime directory (directory the docker container has been run from) under output.png name. You may open that file from your host OS file to see the result.

Implementation

The seamCarving function defined inside the seam_carving.cpp file is an entry point to your implementation.

Examples

Example images are located inside the examples/ directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published