Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 2.92 KB

README.md

File metadata and controls

64 lines (43 loc) · 2.92 KB

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