Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aaparella/carve

Go implementation of Seam Carving algorithm.
https://github.com/aaparella/carve

go image-processing seam-carving

Last synced: 3 days ago
JSON representation

Go implementation of Seam Carving algorithm.

Awesome Lists containing this project

README

        

# 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](http://parellagram.com/posts/carving). Algorithm is also detailed on [Wikipedia](https://en.wikipedia.org/wiki/Seam_carving), the [original paper](http://graphics.cs.cmu.edu/courses/15-463/2007_fall/hw/proj2/imret.pdf).

# Installation

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

# Usage

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

# Todo

* Improve performance
- Reduce heap allocations
- Caching?