From f3812ec2e27a0f1ad1d8480bbd62412d59baf91d Mon Sep 17 00:00:00 2001 From: Jordi Inglada <jordi.inglada@cesbio.cnes.fr> Date: Thu, 1 Mar 2018 10:31:26 +0100 Subject: [PATCH] BUG: wrong parameter names and wrong output --- .../AppClassification/app/otbSampleAugmentation.cxx | 4 ++-- .../AppClassification/include/otbSampleAugmentationFilter.txx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/Applications/AppClassification/app/otbSampleAugmentation.cxx b/Modules/Applications/AppClassification/app/otbSampleAugmentation.cxx index eed67c8fb8..b2fcb1deb6 100644 --- a/Modules/Applications/AppClassification/app/otbSampleAugmentation.cxx +++ b/Modules/Applications/AppClassification/app/otbSampleAugmentation.cxx @@ -248,14 +248,14 @@ private: { otbAppLogINFO("Augmentation strategy : jitter"); filter->SetStrategy(FilterType::Strategy::Jitter); - filter->SetStdFactor(this->GetParameterFloat("stdfactor")); + filter->SetStdFactor(this->GetParameterFloat("strategy.jitter.stdfactor")); } break; case 2: { otbAppLogINFO("Augmentation strategy : smote"); filter->SetStrategy(FilterType::Strategy::Smote); - filter->SetSmoteNeighbors(this->GetParameterInt("neighbors")); + filter->SetSmoteNeighbors(this->GetParameterInt("strategy.smote.neighbors")); } break; } diff --git a/Modules/Applications/AppClassification/include/otbSampleAugmentationFilter.txx b/Modules/Applications/AppClassification/include/otbSampleAugmentationFilter.txx index 41590a0109..612e0e22f5 100644 --- a/Modules/Applications/AppClassification/include/otbSampleAugmentationFilter.txx +++ b/Modules/Applications/AppClassification/include/otbSampleAugmentationFilter.txx @@ -80,7 +80,7 @@ SampleAugmentationFilter { OGRDataSourcePointerType inputDS = dynamic_cast<OGRDataSourceType*>(this->itk::ProcessObject::GetInput(0)); - auto outputDS = static_cast<ogr::DataSource *>(this->itk::ProcessObject::GetOutput(1)); + auto outputDS = static_cast<ogr::DataSource *>(this->itk::ProcessObject::GetOutput(0)); auto inSamples = this->extractSamples(inputDS, m_Layer, m_ClassFieldName, m_Label, -- GitLab