Hi,

If you only have 1 sample in some classes, it will be difficult to perform the SampleSelection using the modes "smallest" or "constant". However, since your total number of samples is not huge, you could select "all" the available samples.

As you proposed, you can also remove these small classes from your shapefile (or maybe fuse them with similar classes).

Regards,

Guillaume


On 02/02/2017 04:54 PM, michel M wrote:
hello,
I  calculated the statistics . the crops code "key " is RPG ( graphic parcellair census in france)
So must i delete the crops code with a low value "1"  in my shape file ?
(Key 3 , key 5 , 24 )
many thanks

otbcli_PolygonClassStatistics.bat -in alldates2014_av_landsat.tif -vec centroid_training_sans_code_diver.shp -field "code" -out test.xml



<GeneralStatistics>
    <Statistic name="samplesPerClass">
        <StatisticMap key="1" value="5" />
        <StatisticMap key="13" value="38" />
        <StatisticMap key="15" value="6" />
        <StatisticMap key="16" value="20" />
        <StatisticMap key="17" value="63" />
        <StatisticMap key="18" value="65" />
        <StatisticMap key="19" value="30" />
        <StatisticMap key="2" value="7" />
        <StatisticMap key="20" value="265" />
        <StatisticMap key="21" value="302" />
        <StatisticMap key="22" value="3" />
        <StatisticMap key="23" value="151" />
        <StatisticMap key="24" value="1" />
        <StatisticMap key="25" value="166" />
        <StatisticMap key="27" value="4" />
        <StatisticMap key="3" value="1" />
        <StatisticMap key="4" value="103" />
        <StatisticMap key="5" value="1" />
        <StatisticMap key="6" value="7" />
        <StatisticMap key="8" value="3" />
--
--
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.

--
Guillaume PASERO
Responsable technique
Business Unit ESPACE & GeoInformation - Département Payload Data & Applications

CS Systèmes d'Information
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - FRANCE
+33 561 17 64 21 - [email protected]

--
--
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.

Reply via email to