Skip to content

Enlarge image by 2x with hq2x algorithm

Notifications You must be signed in to change notification settings

akatsuki105/hq2xgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .