Git Product home page Git Product logo

cpp_reading_lab's Introduction

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.

cpp_reading_lab's People

Contributors

tomaszmi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.