R/Zonestats3.R
count_pixels.Rd
counts all pixels in a segmented image
count_pixels(img)
one layer image
a numeric value
data(seg_Oulanka2023_Session01_T067) img = terra::rast(seg_Oulanka2023_Session01_T067)[[2]] rootpixel = count_pixels(img)