mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
Merge pull request #207 from traum-ferienwohnungen/nearest-neighbour
Add nearest-neighbour interpolation
This commit is contained in:
commit
6837999321
1 changed files with 3 additions and 0 deletions
|
|
@ -41,12 +41,15 @@ const (
|
|||
Bilinear
|
||||
// Nohalo interpolation value.
|
||||
Nohalo
|
||||
// Nearest neighbour interpolation value.
|
||||
Nearest
|
||||
)
|
||||
|
||||
var interpolations = map[Interpolator]string{
|
||||
Bicubic: "bicubic",
|
||||
Bilinear: "bilinear",
|
||||
Nohalo: "nohalo",
|
||||
Nearest: "nearest",
|
||||
}
|
||||
|
||||
func (i Interpolator) String() string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue