Skip to content

Commit

Permalink
BUG: Testing bug of untested sigmoidAlpha value
Browse files Browse the repository at this point in the history
The sigmoidAlpha value was not tested in the copied
and pasted code that was not properly modified.
  • Loading branch information
hjmjohnson committed Nov 25, 2024
1 parent fe6f474 commit 8cccf8b
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions test/itkSatoVesselnessSigmoidFeatureGeneratorMultiScaleTest1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -102,35 +102,36 @@ itkSatoVesselnessSigmoidFeatureGeneratorMultiScaleTest1(int argc, char * argv[])
ITK_TEST_SET_GET_VALUE(alpha1, featureGenerator3->GetAlpha1());
featureGenerator4->SetAlpha1(alpha1);
ITK_TEST_SET_GET_VALUE(alpha1, featureGenerator4->GetAlpha1());

double alpha2 = 2.0;
if (argc > 5)
{
alpha2 = std::stod(argv[5]);
double alpha2 = 2.0;
if (argc > 5)
{
alpha2 = std::stod(argv[5]);
}
featureGenerator1->SetAlpha2(alpha2);
ITK_TEST_SET_GET_VALUE(alpha2, featureGenerator1->GetAlpha2());
featureGenerator2->SetAlpha2(alpha2);
ITK_TEST_SET_GET_VALUE(alpha2, featureGenerator2->GetAlpha2());
featureGenerator3->SetAlpha2(alpha2);
ITK_TEST_SET_GET_VALUE(alpha2, featureGenerator3->GetAlpha2());
featureGenerator4->SetAlpha2(alpha2);
ITK_TEST_SET_GET_VALUE(alpha2, featureGenerator4->GetAlpha2());
}
featureGenerator1->SetAlpha2(alpha2);
ITK_TEST_SET_GET_VALUE(alpha2, featureGenerator1->GetAlpha2());
featureGenerator2->SetAlpha2(alpha2);
ITK_TEST_SET_GET_VALUE(alpha2, featureGenerator2->GetAlpha2());
featureGenerator3->SetAlpha2(alpha2);
ITK_TEST_SET_GET_VALUE(alpha2, featureGenerator3->GetAlpha2());
featureGenerator4->SetAlpha2(alpha2);
ITK_TEST_SET_GET_VALUE(alpha2, featureGenerator4->GetAlpha2());

double sigmoidAlpha = -1.0;
if (argc > 6)
{
sigmoidAlpha = std::stod(argv[6]);
double sigmoidAlpha = -1.0;
if (argc > 6)
{
sigmoidAlpha = std::stod(argv[6]);
}
featureGenerator1->SetSigmoidAlpha(sigmoidAlpha);
ITK_TEST_SET_GET_VALUE(sigmoidAlpha, featureGenerator1->GetSigmoidAlpha());
featureGenerator2->SetSigmoidAlpha(sigmoidAlpha);
ITK_TEST_SET_GET_VALUE(sigmoidAlpha, featureGenerator2->GetSigmoidAlpha());
featureGenerator3->SetSigmoidAlpha(sigmoidAlpha);
ITK_TEST_SET_GET_VALUE(sigmoidAlpha, featureGenerator3->GetSigmoidAlpha());
featureGenerator4->SetSigmoidAlpha(sigmoidAlpha);
ITK_TEST_SET_GET_VALUE(sigmoidAlpha, featureGenerator4->GetSigmoidAlpha());
}
featureGenerator1->SetSigmoidAlpha(alpha2);
ITK_TEST_SET_GET_VALUE(alpha2, featureGenerator1->GetSigmoidAlpha());
featureGenerator2->SetSigmoidAlpha(alpha2);
ITK_TEST_SET_GET_VALUE(alpha2, featureGenerator2->GetSigmoidAlpha());
featureGenerator3->SetSigmoidAlpha(alpha2);
ITK_TEST_SET_GET_VALUE(alpha2, featureGenerator3->GetSigmoidAlpha());
featureGenerator4->SetSigmoidAlpha(alpha2);
ITK_TEST_SET_GET_VALUE(alpha2, featureGenerator4->GetSigmoidAlpha());

double sigmoidBeta = 90.0;
if (argc > 7)
{
Expand Down

0 comments on commit 8cccf8b

Please sign in to comment.