You are right, this is for now the only way. However, this could be
easily added for next release. Will do a small RFC if I find the time
today. Do you see other missing strategies ? I was thinking that setting
a global number of samples and getting proportional class size is not
easy either.
Regards,
Julien
Le 27/09/2016 à 08:23, Jordi Inglada a écrit :
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)
--
Julien MICHEL
CNES - DCT/SI/AP
--
--
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.