Git Product home page Git Product logo

seam-carving's Introduction

Seam Carving - Image resizing with CUDA

Description

  • A final project in Parallel Programming Class (University of Science).
  • Using Nvidia GPU to optimize algorithm and reduce time in image processing. The main program was written in C and C++.
  • All details can be found in colab file.
  • Only 1 version was developed.
  • Note: This is a demonstration, not a real-world application.

Table of contents

  1. Introduction
  2. Main idea
  3. Convert from RGB to Grayscale
  4. Convolution
  5. Calculate the energy of each pixels using gradient magnitude
  6. Find low energy seams
  7. Remove low-energy seams
  8. Demonstration with images

Usage

To view pnm images, install IrfanView

There are 2 ways to use:

  • Easy way: go to this colab file, that's all!
  • Hard way: Download ./seam-carving.ipynb only, it is the same as colab file in easy way. Upload it to your drive and you are good to go.

Screenshots

Before After

Have not achieved

Small errors when resizing large image, don't know where is the bug

Contributors

  • Tran Tuan Kiet (Group leader)
  • Nguyen Duc Thang
  • Le Thanh Loc

References

Slides from teacher Phạm Trọng Nghĩa

Wikipedia - Seam Carving

18.S191 MIT Fall 2020 - Seam Carving - Grant Sanderson

MIT 18.S191 Fall 2020 - Seam Carving - James Schloss

Convolution - 3Blue1Brown - Grant Sanderson

seam-carving's People

Contributors

the0nlywyvern avatar

Watchers

 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.