Skip to content
Snippets Groups Projects
Commit fd3b6386 authored by Julien Michel's avatar Julien Michel
Browse files

PERF: NAPCA method now supports large images in both modes

parent 8765cb66
No related branches found
No related tags found
No related merge requests found
......@@ -294,17 +294,21 @@ private:
filter->SetUseNormalization(normalize);
filter->GetNoiseImageFilter()->SetRadius(radius);
m_ForwardFilter->GetOutput()->UpdateOutputInformation();
if (invTransform)
{
m_ForwardFilter->Update();
otbAppLogDEBUG( << "Compute Inverse Transform");
invFilter->SetInput(m_ForwardFilter->GetOutput());
otbAppLogINFO( << "Normalization MeanValue:"<<filter->GetMeanValues() );
invFilter->SetMeanValues(filter->GetMeanValues());
if (normalize)
{
otbAppLogINFO( << "Normalization StdDevValue:"<<filter->GetStdDevValues() );
invFilter->SetStdDevValues(filter->GetStdDevValues());
}
invFilter->SetUseNormalization(normalize);
invFilter->SetTransformationMatrix(filter->GetTransformationMatrix());
m_TransformationMatrix = invFilter->GetTransformationMatrix();
}
......
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