Go implementation of Seam Carving algorithm.
Go
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
LICENSE Create LICENSE Jun 29, 2016
README.md Update README Jul 27, 2016
carve.go Remove unneeded conversions Mar 26, 2017

README.md

carve

Go implementation of Seam Carving algorithm. Seam carving allows for an image to be resized without simply cropping or scaling the original image. Detailed walk through of the algorithm and code can be found on my website. Algorithm is also detailed on Wikipedia, the original paper.

Installation

$ go get https://github.com/aaparella/carve

Usage

resized, err := carve.ReduceHeight(img, 50)
if err != nil {
    log.Fatal(err)
}

Todo

  • Improve performance
    • Reduce heap allocations
    • Caching?