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

BUG: Fix #1366 (call UpdateOutputInformation() on all image outputs from Application->Execute() )

parent a69d30c8
No related branches found
No related tags found
2 merge requests!49Command line options for Monteverdi,!17Contrast enhancement corrections
......@@ -378,6 +378,35 @@ int Application::Execute()
this->DoExecute();
// 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;
}
......
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