Skip to content
Snippets Groups Projects
Commit 38780d28 authored by Julien Malik's avatar Julien Malik
Browse files

BUG: outputs of mean shift are optional. handle it properly

parent e8a373d4
No related branches found
No related tags found
No related merge requests found
......@@ -94,10 +94,14 @@ private:
m_Ref = filter;
SetParameterOutputImage("fout", filter->GetOutput());
SetParameterOutputImage("cout", filter->GetClusteredOutput());
SetParameterOutputImage("lout", filter->GetLabeledClusteredOutput());
SetParameterOutputImage("cbout", filter->GetClusterBoundariesOutput());
if (IsParameterEnabled("fout") && HasValue("fout"))
SetParameterOutputImage("fout", filter->GetOutput());
if (IsParameterEnabled("cout") && HasValue("cout"))
SetParameterOutputImage("cout", filter->GetClusteredOutput());
if (IsParameterEnabled("lout") && HasValue("lout"))
SetParameterOutputImage("lout", filter->GetLabeledClusteredOutput());
if (IsParameterEnabled("cbout") && HasValue("cbout"))
SetParameterOutputImage("cbout", filter->GetClusterBoundariesOutput());
}
itk::LightObject::Pointer m_Ref;
......
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