Hello everyone,
I've added a new module to the addons repository: i.segment.stats [1] which calculates spectral and form statistics for raster segments, typically coming from i.segment or possibly r.clump.
It is meant as one part of the general toolchain for object-based image segmentation.
It is a simple fronted to v.to.db and r.univar and as such a more KISS complement to Pietro's highly sophisticated v.class.ml.
Thanks also to MarkusM for significantly accelerating v.to.db !
The biggest ToDo is to add more variables to characterise segments...
Moritz
[1] https://trac.osgeo.org/grass/browser/grass-addons/grass7/imagery/i.segment.stats