Merge pull request #207 from traum-ferienwohnungen/nearest-neighbour

Add nearest-neighbour interpolation
This commit is contained in:
Tomás 2017-11-14 11:35:28 +01:00 committed by GitHub
commit 6837999321
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,12 +41,15 @@ const (
Bilinear Bilinear
// Nohalo interpolation value. // Nohalo interpolation value.
Nohalo Nohalo
// Nearest neighbour interpolation value.
Nearest
) )
var interpolations = map[Interpolator]string{ var interpolations = map[Interpolator]string{
Bicubic: "bicubic", Bicubic: "bicubic",
Bilinear: "bilinear", Bilinear: "bilinear",
Nohalo: "nohalo", Nohalo: "nohalo",
Nearest: "nearest",
} }
func (i Interpolator) String() string { func (i Interpolator) String() string {