brycefrank / pyfor

Tools for analyzing aerial point clouds of forest data.
MIT License
93 stars 19 forks source link

Interpolation error #3

Closed brycefrank closed 6 years ago

brycefrank commented 6 years ago

Some distortion or error is present when using the interpolation function.

Here is a plotted array before interpolation using the code:

import matplotlib.pyplot as plt
import pyfor

A = pyfor.cloud.Cloud("sample.las")
A = a_grid.array("min", "z")
plt.imshow(A);
plt.colorbar()
plt.show()
alt text

Here is a plotted array after interpolation using the code:

A = a_grid.interpolate("z", "min")
plt.imshow(A);
plt.colorbar()
plt.show()
alt text
brycefrank commented 6 years ago

Fixed in this commit.