Hi,

I don't see how to select a given percentage for each class with the sample 
selection application. I mean that I would like to get for instance, 50% of the 
samples for each class.

I was thinking that with the periodic sampler it could be done, but I don't 
even see how to set the period for the sampler.

The only solution I see is using the polygon statistics file to get the number 
of samples per class, compute the percentages and use the "byclass" strategy to 
set the numbers.

Am I missing something here?

Thank you.

Jordi

Parameters: 
        -progress                <boolean>        Report progress 
MISSING -in                      <string>         InputImage  (mandatory)
        -mask                    <string>         InputMask  (optional, off by 
default)
MISSING -vec                     <string>         Input vectors  (mandatory)
MISSING -out                     <string>         Output vectors  (mandatory)
MISSING -instats                 <string>         Input Statistics  (mandatory)
        -outrates                <string>         Output rates  (optional, off 
by default)
        -sampler                 <string>         Sampler type 
[periodic/random] (mandatory, default value is periodic)
        -sampler.periodic.jitter <int32>          Jitter amplitude  (optional, 
on by default, default value is 0)
        -strategy                <string>         Sampling strategy 
[byclass/constant/smallest/all] (mandatory, default value is smallest)
        -strategy.byclass.in     <string>         Number of samples by class  
(mandatory)
        -strategy.constant.nb    <int32>          Number of samples for all 
classes  (mandatory)
        -field                   <string>         Field Name  (optional, on by 
default, default value is class)
        -layer                   <int32>          Layer Index  (optional, on by 
default, default value is 0)
        -ram                     <int32>          Available RAM (Mb)  
(optional, off by default, default value is 128)
        -rand                    <int32>          set user defined seed  
(optional, off by default)
        -inxml                   <string>         Load otb application from xml 
file  (optional, off by default)


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