Commit 64b97a93 authored by Floris Berendsen's avatar Floris Berendsen
Browse files

BUG: CommandIterationUpdate did not work with the small number of

parameters of an AffineTransform
parent 2dde7421
......@@ -87,7 +87,7 @@ public:
std::cout << " FM Final metric value: " << optimizer->GetCurrentMetricValue() << std::endl;
std::cout << " SC Optimizer scales: " << optimizer->GetScales() << std::endl;
std::cout << " FG Final metric gradient (sample of values): ";
if( gradient.GetSize() < 10 )
if( gradient.GetSize() < 16 )
{
std::cout << gradient;
}
......
......@@ -550,7 +550,7 @@ TEST_F(RegistrationItkv4Test, FullyConfigured3dAffine)
ParameterMapType component7Parameters;
component7Parameters["NameOfClass"] = { "ItkGradientDescentOptimizerv4Component" };
component7Parameters["NumberOfIterations"] = { "1" };
component7Parameters["NumberOfIterations"] = { "10" };
blueprint->AddComponent("Optimizer", component7Parameters);
blueprint->AddComponent("ResampleFilter", { { "NameOfClass", { "ItkResampleFilterComponent" } },
......
Supports Markdown
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