Add a new application for zonal statistics.
There is currently no such application in the Orfeo ToolBox. This application enables to compute statistics (min, max, mean, standard deviation) of objects in a vector image.
Input objects can be described from a vector data, or from a label image:
VectorData
is rasterized at the same origin/spacing/size as the input image. Polygons are numbered starting from 0. The statistics are computed using a StreamingStatisticsMapFromLabelImageFilter
.StreamingStatisticsMapFromLabelImageFilter
, from the input image and the label image.The application enables to produce output stats in multiple forms:
AppClassification
: ZonalStatistics
(otbZonalStatistics.cxx)AppClassification/test
New: ZonalStatistics
application (otbZonalStatistics.cxx)
I've pushed a new branch in otb-data called "zonalstatistics" which contains new files in baseline and input:
Please feel free to discuss this feature.
The copyright owner is IRSTEA and has signed the ORFEO ToolBox Contributor License Agreement.