akatsuki105 / hq2xgo

Enlarge image by 2x with hq2x algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hq2xgo

Go GoDoc

Enlarge image by 2x with hq2x algorithm

Example(Before -> After)

    


    

Usage

command line

$ make build # require make and go
$ hq2x input.png output.png

golang package

See godoc for details.

$ go get github.com/pokemium/hq2xgo
import (
	hq2x "github.com/pokemium/hq2xgo"
)

after, err := hq2x.HQ2x(before) // var before *image.RGBA

Measure benchmark

$ cd cmd/
$ go test -bench .

About

Enlarge image by 2x with hq2x algorithm


Languages

Language:Go 99.8%Language:Makefile 0.2%