fieldcount getting the data

48 views
Skip to first unread message

Martin Gejl

unread,
May 6, 2024, 3:05:39 AM5/6/24
to FIELDimageR: A R package to analyze orthomosaic images from field trials.
Hi All
In the old version of fieldcount you could get the number of objects counted out by using

.........$fieldCount

How do I get the number out to print to a table like this

EX.Table<-cbind(test1.count$fieldCount, test1.area$areaPorcent)

in the new version of fieldCount I can see from my fieldCount that I have 210 obs. or lines but how do I get the number out

kind regards
Martin

fmatias

unread,
May 6, 2024, 6:54:21 AM5/6/24
to FIELDimageR: A R package to analyze orthomosaic images from field trials.
Hey there,

You can use two options now:

# New shapeFile with objects in the plot. Data per plot in the grid: area, perimeter, count, and mean_width. 
EX1.SC$plot_level 

# New shapeFile of single objects. Data per object (plant, pollen, etc.): area, perimeter, width, x and y position. 
EX1.SC$object_level 


Hope it helps,
Filipe

Martin Gejl

unread,
May 7, 2024, 4:45:33 AM5/7/24
to FIELDimageR: A R package to analyze orthomosaic images from field trials.
Hi Filipe
It help a little, I now have something that work like in the old version, but missing some features.
I am using in this case FieldImageR to count emergence of cereals from jpg pictures taken by a phone/tablet/camera.
I think the new version is better for identifying single plants, but I have trouble to get the picture with "dots" of the counting and get an autosave of the plots to function in the new version (Used for documentation and validation). I would really appriciate if you could go through the old/New code and mayby help me with solving the problem with the picture saving I had in the old code.
I think it is something with creating a shapefile out of a whole picture but is not shure.
I have attached the old version, and my new version of the code (The new version is a little clumpsy regarding getting the count and the area out in a table).

By the way it is a really great program you have made.
Kind regards
Martin Gejl

EmergenceCountV2024-05-06.R
EmergenceCountV2023-12-01.R
Reply all
Reply to author
Forward
0 new messages