Commit 3bccda7d authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: duplicated code coming from a different commit

parent ae095700
......@@ -638,35 +638,6 @@ int Application::Execute()
}
}
// Update output information on every output image parameter
for (std::vector<std::string>::const_iterator it = paramList.begin();
it != paramList.end();
++it)
{
std::string key = *it;
if (GetParameterType(key) == ParameterType_OutputImage
&& IsParameterEnabled(key) )
{
Parameter* param = GetParameterByKey(key);
OutputImageParameter* outputParam = dynamic_cast<OutputImageParameter*>(param);
if(outputParam!=ITK_NULLPTR)
{
outputParam->GetImage()->UpdateOutputInformation();
}
}
else if (GetParameterType(key) == ParameterType_ComplexOutputImage
&& IsParameterEnabled(key))
{
Parameter* param = GetParameterByKey(key);
ComplexOutputImageParameter* outputParam = dynamic_cast<ComplexOutputImageParameter*>(param);
if(outputParam!=ITK_NULLPTR)
{
outputParam->GetImage()->UpdateOutputInformation();
}
}
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment