Hi Maryam and Stuart,
Thank you for helping each other.
Do you guys this that maybe the error is related to the image
path? Maryam, did you try to save your
image (Atlanta_Ortho.tif) on the same directory of your script and run the code
below to see if it works?
library(FIELDimageR)
library(raster)
EX1<-stack("Atlanta_Ortho.tif")
plotRGB(EX1)
plotRGB(RGB.rescale(r, num.band = 3))
About the "table" question:
(1) If you are looking only for image data extraction, with no intention to compare the results with traits collected manually in the field (e.g., yield, maturity, etc.), the answer is YES. FIELDimageR can make the table by itself. The data ID (PlotName) will be organized from left to right and top to bottom (https://github.com/OpenDroneMap/FIELDimageR#P5).
(2) However, if you want to have the same sequence or plot identification from your field and combine the image data with the traits collected manually in the field (e.g., yield, maturity, etc.), the answer is NO. In this case, you must provide a MAP (matrix object in R) with the right plot identification. Also, you need to provide a data table with one column that matches the MAP identification ID. For example, input table with (Plot, Row, Range and a sequence of field traits collected manually) like in this example: https://drive.google.com/file/d/18YE4dlSY1Czk2nKeHgwd9xBX8Yu6RCl7/view.
I tried to explain what the function fieldShape does here: https://github.com/OpenDroneMap/FIELDimageR#P5
Let me know if it makes sense,
Filipe
library(FIELDimageR)
library(raster)
EX1<-raster("Atlanta_Ortho.tif")
plot(EX1)
Let me know if it works.
Best,
Filipe