Skip to content
Snippets Groups Projects
Commit f3812ec2 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

BUG: wrong parameter names and wrong output

parent d4a174c0
No related branches found
No related tags found
1 merge request!25Data augmentation
......@@ -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;
}
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment