Skip to content

Commit

Permalink
ENH: Add itkBooleanMacro for boolean ivar
Browse files Browse the repository at this point in the history
Add `itkBooleanMacro` for the `NormalProcessUnsharpFlag` boolean ivar of
`itk::SparseFieldFourthOrderLevelSetImageFilter`.

Add the corresponding test.
  • Loading branch information
jhlegarreta authored and dzenanz committed Aug 24, 2022
1 parent bb2143e commit 16d7523
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ class ITK_TEMPLATE_EXPORT SparseFieldFourthOrderLevelSetImageFilter
itkSetMacro(NormalProcessConductance, ValueType);
itkSetMacro(NormalProcessUnsharpFlag, bool);
itkGetConstReferenceMacro(NormalProcessUnsharpFlag, bool);
itkBooleanMacro(NormalProcessUnsharpFlag);
itkSetMacro(NormalProcessUnsharpWeight, ValueType);
itkGetConstReferenceMacro(NormalProcessUnsharpWeight, ValueType);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ itkSparseFieldFourthOrderLevelSetImageFilterTest(int, char *[])
std::cout << "Unsharp flag = " << (filter->GetNormalProcessUnsharpFlag()) << "\n";
std::cout << "Unsharp weight = " << (filter->GetNormalProcessUnsharpWeight()) << "\n";

bool normalProcessUnsharpFlag = false;
filter->SetNormalProcessUnsharpFlag(normalProcessUnsharpFlag);
ITK_TEST_SET_GET_BOOLEAN(filter, NormalProcessUnsharpFlag, normalProcessUnsharpFlag);

ITK_TRY_EXPECT_NO_EXCEPTION(filter->Update());


Expand Down

0 comments on commit 16d7523

Please sign in to comment.