Skip to content

Commit

Permalink
BUG: Fix math morphology strongly typed enum scope-resolution
Browse files Browse the repository at this point in the history
Fix math morphology strongly typed `enum` scope-resolution.
  • Loading branch information
jhlegarreta committed Oct 3, 2020
1 parent 71a1e10 commit 128e1d7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ itkGrayscaleMorphologicalOpeningImageFilterTest2(int ac, char * av[])
return EXIT_FAILURE;
}

if (filter->GetAlgorithm() != FilterType::HISTO)
if (filter->GetAlgorithm() != FilterType::AlgorithmEnum::HISTO)
{
std::cerr << "Wrong default algorithm." << std::endl;
return EXIT_FAILURE;
Expand All @@ -83,19 +83,19 @@ itkGrayscaleMorphologicalOpeningImageFilterTest2(int ac, char * av[])
WriterType::Pointer writer = WriterType::New();
writer->SetInput(filter->GetOutput());

filter->SetAlgorithm(FilterType::BASIC);
filter->SetAlgorithm(FilterType::AlgorithmEnum::BASIC);
writer->SetFileName(av[2]);
writer->Update();

filter->SetAlgorithm(FilterType::HISTO);
filter->SetAlgorithm(FilterType::AlgorithmEnum::HISTO);
writer->SetFileName(av[3]);
writer->Update();

filter->SetAlgorithm(FilterType::ANCHOR);
filter->SetAlgorithm(FilterType::AlgorithmEnum::ANCHOR);
writer->SetFileName(av[4]);
writer->Update();

filter->SetAlgorithm(FilterType::VHGW);
filter->SetAlgorithm(FilterType::AlgorithmEnum::VHGW);
writer->SetFileName(av[5]);
writer->Update();
}
Expand Down

0 comments on commit 128e1d7

Please sign in to comment.