Skip to content

hieesulee/seam-carving-parallel-numba

 
 

Repository files navigation

SEAM CARVING GPU WITH NUMBA

TODO:

  • Sequentially version by numba no python mode.
  • Parallel version by numba cuda mode.
  • Optimize using shared memory and experiment with different block sizes for kernel functions

Usage

CPU Usage:

- seam_carving_cpu.py [-dx <seam_dx>] [-dy <seam_dy>] [-in <image_in>] [-out <image_out>] -test_time
  • dx: Number of horizontal seams to add (if positive) or subtract (if negative)
  • dy: Number of vertical seams to add (if positive) or subtract (if negative)
  • in: input image file path
  • out: output image file path
  • test_time: print time of each step in pipeline

GPU Usage:

- seam_carving_gpu.py [-dx <seam_dx>] [-dy <seam_dy>] [-in <image_in>] [-out <image_out>] -check_sum
  • dx: Number of horizontal seams to add (if positive) or subtract (if negative)
  • dy: Number of vertical seams to add (if positive) or subtract (if negative)
  • in: input image file path
  • out: output image file path
  • check_sum: use cpu's grayscale

References

About

Project Seam Carving

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 54.1%
  • Python 45.9%