Le 16/12/2014 19:23, Jordi Inglada a écrit :
Agustin Lobo <[email protected]> wrote:
Given a multi-spectral image and a labellised image (i.e. a
classification, a soil map etc ) in integers
is there an otbcli application to get a table with mean, sd and n for
each class (integer value)?
I don't think this application exists, but you can script something using
BandMath to extract a masked image of each class and use the -bv (background
value) option of the ComputeImageStatistics on the image of each class.
Jordi
Actually, the last app of the LSMS framework (otbcli_LSMSVectorization)
will do just that for you : each segment of the label image is
vectorized into a polygon in the output GIS file, and for each segment
we compute the stats of the support image (i.e. the input multispectral
image) and attach these stats as fields of the polygon. It can be seen
in qgis for instance, but I am sure there are other ways to use these
info (including ogr wrapper in OTB).
Regards,
Julien
--
Julien MICHEL
CNES - DCT/SI/AP - BPI 1219
18, avenue Edouard Belin
31401 Toulouse Cedex 09 - France
Tel: +33 561 282 894 - Fax: +33 561 283 109
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.