Commit Graph

5 Commits

Author SHA1 Message Date
f-fl0
548cdac668 Fix scaling functions (#385)
This commit corrects two small errors that causes the improper
results reported in #312.

- A copy paste typo (most likely) which sets the Dy component
  of the image rectangle to Dx.
- The tmp array in fastBoxSampling was not properly
  reset because the last argument in memset should be
  the number of bytes to fill in and not the number of elements.
2022-03-18 15:04:36 +09:00
Lukas Herman
559c6a13a1 Update readers to be memory pool friendly 2020-10-29 00:04:12 -07:00
Atsushi Watanabe
e7ac2f3493 Add CGO scaler
FastNearestNeighbor(CGO) is roughly 4 times faster than
NearestNeighbor(x/image/draw).
2020-02-17 14:51:24 +09:00
Atsushi Watanabe
d9cb131b26 Add more cases to scaler benchmark 2020-02-17 14:51:24 +09:00
Atsushi Watanabe
e01573b7ac Add test and benchmark 2020-02-17 14:51:24 +09:00