Fix typo in image encoder (#1620)

This commit is contained in:
Vishnu Mohandas 2023-12-22 23:20:51 +05:30 committed by GitHub
commit 894f5b5da7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,8 +146,8 @@ class OnnxImageEncoder {
final double v10 = inputImage[j10];
final double v11 = inputImage[j11];
final double v0 = v00 + (1 - dx) + v01 * dx;
final double v1 = v10 + (1 - dx) + v11 * dx;
final double v0 = v00 * (1 - dx) + v01 * dx;
final double v1 = v10 * (1 - dx) + v11 * dx;
final double v = v0 * (1 - dy) + v1 * dy;