Add nearest-neighbour interpolation

This commit is contained in:
Janis Meybohm 2017-11-10 14:50:57 +01:00
parent 0df331cdeb
commit 90d6230aba

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 {