Giter Site home page Giter Site logo

seam-carving's Introduction

Seam-Carving

Implemented Seam Carving Technique using dynamic programming.

Programming Language : C++

Library Used : OpenCV

Introduction

This project is implemented to retargeting the image to pase the content of image in a different size(smaller size). This process is achieved by avoiding non-uniform scaling to prevent properties of objects in scene and cropping of the content.

[https://en.wikipedia.org/wiki/Seam_carving]

Seam Carving

The idea of seam carving is to select horizontal or vertical seam that is a prixel thick cut through the image. Each seam will be from right to left or top to bottom through the image and after cut down the selected seam, image size(height or width) will reduce by one pixel. The aim to select most optimal seam is that the seam should be through the non-salient content of the image.

Run the project

There are four arguments

  1. Input file
  2. Target width
  3. Target height
  4. Output file
g++ -o main main.cpp
g++ -o sc sc.cpp
./sc castle.jpg 1000 600 output.jpg

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.