OpenDroneMap / FIELDimageR

FIELDimageR: A R package to analyze orthomosaic images from agricultural field trials. This package is a compilation of functions to analyze pos-mosaicking images from research fields, and allows to: crop the image; remove soil effect; build vegetation indices; rotate the image; build the plot shapefile; extract information for each plot; and evaluate stand count, canopy percentage, and plant height.
GNU General Public License v2.0
239 stars 90 forks source link

Use a buffer for canopy calculation #22

Open cassondranewman opened 3 years ago

cassondranewman commented 3 years ago

Hello,

I would like to calculate the canopy for each plot and buffer the area near the border of each plot.

I have been able to successfully calculate the canopy area per plot with the 'fieldArea' function, however this function does not allow the user to input a desired buffer. I have also tried to use the 'fieldInfo' function to apply the buffer to the output of the 'fieldArea' function, but I have not been able to get the 'fieldArea' function to accept the canopy input.

Please advise on the best practice to applying a buffer to a canopy calculation. Thanks!!

filipematias23 commented 3 years ago

Hi there,

Thank you for the suggestion. We just changed the function fieldArea to allow Buffer too. Could you check if it is working for you?

Thank you, Filipe

cassondranewman commented 3 years ago

Thank you so much! I was able to successfully input my desired buffer with the fieldArea function. I appreciate your time and effort!

I have one last question regarding buffering: Our field has different spacing between plots vertically (a few inches) and horizontally (a few feet). Have you considered implementing a separate X-axis buffer and Y-axis buffer? I believe researchers with similar field spacing to mine would find a two-part buffer very useful!

Best, Cassie