Skip to content
Snippets Groups Projects
Commit a79f74fe authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

Merge branch 'bug_MultiImageSamplingRate' into develop

parents 0b6c5139 b069d830
No related branches found
No related tags found
No related merge requests found
...@@ -253,8 +253,15 @@ private: ...@@ -253,8 +253,15 @@ private:
m_CalculatorList->SetNbOfSamplesAllClasses(countList, partitionMode); m_CalculatorList->SetNbOfSamplesAllClasses(countList, partitionMode);
} }
break; break;
// percent // smallest class
case 2: case 2:
{
otbAppLogINFO("Sampling strategy : fit the number of samples based on the smallest class");
m_CalculatorList->SetMinimumNbOfSamplesByClass(partitionMode);
}
break;
// percent
case 3:
{ {
std::vector<itksys::String> parts = itksys::SystemTools::SplitString(this->GetParameterString("strategy.percent.p"),' '); std::vector<itksys::String> parts = itksys::SystemTools::SplitString(this->GetParameterString("strategy.percent.p"),' ');
std::vector<double> percentList; std::vector<double> percentList;
...@@ -283,7 +290,7 @@ private: ...@@ -283,7 +290,7 @@ private:
break; break;
// total // total
case 3: case 4:
{ {
std::vector<itksys::String> parts = itksys::SystemTools::SplitString(this->GetParameterString("strategy.total.v"),' '); std::vector<itksys::String> parts = itksys::SystemTools::SplitString(this->GetParameterString("strategy.total.v"),' ');
std::vector<unsigned long> totalList; std::vector<unsigned long> totalList;
...@@ -305,14 +312,6 @@ private: ...@@ -305,14 +312,6 @@ private:
m_CalculatorList->SetTotalNumberOfSamples(totalList, partitionMode); m_CalculatorList->SetTotalNumberOfSamples(totalList, partitionMode);
} }
break; break;
// smallest class
case 4:
{
otbAppLogINFO("Sampling strategy : fit the number of samples based on the smallest class");
m_CalculatorList->SetMinimumNbOfSamplesByClass(partitionMode);
}
break;
// all samples // all samples
case 5: case 5:
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment