How to Cut Trees with "inpolygon" function on Matlab
- Fatma Betül Şeker
- Oct 11, 2024
- 1 min read
While mapping vineyards with NEON site data, I've encountered a freshly established vineyard. The data was from 2019 and the vineyard I could see on Google Earth did not exist on data. Instead the area was just covered by trees which compelled me to cut the trees manually. But how can someone define such area that they can easily point out when there's no difference data points-wise. One way is, of course defining the area by it's corners but this could be tricky in a 2D array, since the range is not actually between the points but in the space they enclose, making it challenging to code. This is where the inpolygon function in MATLAB can be incredibly handy. By defining the vertices of the polygon that represent the boundaries of the newly established vineyard, we can easily check which points fall inside this area and remove them.
Kommentare