-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Barycentric interpolator leaves some raster cells uninterpolated #2035
Comments
I pruned your example down to 4 points that exhibit the bug: The two errors appear to be on an edge between two triangles; probably because of non-robust triangle checks that put them in neither of the triangles. |
It looks like dividing by z after the triangle tests are done fixes the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the output of the barycentric interpolator on the aeromagnetic survey data, with interpolated pixels desaturated and
NaN
value cells drawn in black. There are 16 pixels left uninterpolated, which appear to come in pairs. I instead expected every pixel to be filled via interpolation (or extrapolation).The exact input data to the interpolator is included under the details below.
Input Data
The text was updated successfully, but these errors were encountered: