Skip to content
Snippets Groups Projects
Commit e9809f7a authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: avoid recomputation of min/max at every streaming block

parent 3e7f5be3
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,6 @@ private:
int nbComp = GetParameterInt("nbcomp");
bool normalize = GetParameterInt("normalize");
bool rescale = IsParameterEnabled("rescale");
bool invTransform = HasValue("outinv") && IsParameterEnabled("outinv");
switch (GetParameterInt("method"))
{
......@@ -475,6 +474,7 @@ private:
m_RescaleFilter = RescaleImageFilterType::New();
m_RescaleFilter->SetInput(m_ForwardFilter->GetOutput());
m_RescaleFilter->SetAutomaticInputMinMaxComputation(false);
m_RescaleFilter->SetInputMinimum(m_MinMaxFilter->GetMinimum());
m_RescaleFilter->SetInputMaximum(m_MinMaxFilter->GetMaximum());
......
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