Commit 184d3090 authored by Emmanuel Christophe's avatar Emmanuel Christophe

BUG: fix bug in Markov example that was using the implicit conversion from...

BUG: fix bug in Markov example that was using the implicit conversion from double to itk::Array (which was wrong until itk 3.18), the parameter ended up to be 0, still have to rework on the example to get a more suitable value
parent c44a2d28
......@@ -77,7 +77,7 @@ ADD_TEST(maTeMarkovRegularizationExampleTest ${EXE_TESTS}
${TEMP}/MarkovRegularization-scaled.png
0.2
20
1.0
0.0
1 # true to use always the same rand() sample, false otherwis
)
......
......@@ -27,7 +27,7 @@
// Software Guide : BeginCommandLineArgs
// INPUTS: {ROI_QB_MUL_1_SVN_CLASS_MULTI.png}
// OUTPUTS: {MarkovRegularization.png}, {MarkovRegularization-scaled.png}
// 0.2 20 1.0 1
// 0.2 20 0.0 1
// Software Guide : EndCommandLineArgs
// Software Guide : BeginLatex
......@@ -139,7 +139,7 @@ int main(int argc, char* argv[])
unsigned int nClass = labelledStat->GetNumberOfLabels();
// Software Guide : EndCodeSnippet
optimizer->SetParameters(atoi(argv[6]));
optimizer->SetSingleParameter(0.0);
markovFilter->SetNumberOfClasses(nClass);
markovFilter->SetMaximumNumberOfIterations(atoi(argv[5]));
markovFilter->SetErrorTolerance(0.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