Skip to content

Commit

Permalink
fixed threshold for turbocharging pixel inversion
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Jul 22, 2023
1 parent 5c46e9b commit a00b0ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions geowarp.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,13 @@ const geowarp = function geowarp({
};

if (turbo) {
const { reproject } = turbocharge({
const reproject = turbocharge({
bbox: [0, 0, out_width, out_height],
debug_level: 0,
debug_level,
quiet: true,
reproject: inverse_pixel,
threshold: [half_out_sample_width, half_out_sample_height]
});
threshold: [0.5, 0.5]
})?.reproject;
if (reproject) inverse_pixel = pt => reproject(pt).map(n => Math.round(n));
}

Expand Down

0 comments on commit a00b0ed

Please sign in to comment.