counts pixel values according to their classes
numeric. the ids used for the training
sp. spatialpoint object containing the centre target positions
raster* image/classification file
numeric. radius in meters around position
character. out prefix string
character. extension
character. output path
numeric. number of characters that should be dropped at the end of the filename
data frame containing the number of pixels per class