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
230 stars 89 forks source link

n.cores option causing fieldRotate error #33

Open al4112 opened 2 years ago

al4112 commented 2 years ago

Hi, I am new to UAV image processing and am working through simple steps in FIELDimageR to get the hang of it. The n.cores option, which I would like to be able to use with larger images, is creating a problem. Running this:

EX0 <- stack("mosaic0.jpg") EX0.Rotated <- fieldRotate(mosaic = EX0, clockwise=TRUE, h=FALSE, fast.plot=TRUE, n.core=2)

Gives this error: Error in file(fn, "rb") : cannot open the connection In addition: Warning message: In file(fn, "rb") : cannot open file 'C:\Users\username\AppData\Local\Temp\Rtmp84cN89\raster\r_tmp_2022-03-23_174608_12732_49880.gri': No such file or directory

The same code runs fine without the n.core=2 option. Any idea how I can fix this?

Thanks!

filipematias23 commented 1 year ago

Hey there,

What version you are using? Did you try installing the new version?

Best, Filipe