diff --git a/.clang-format b/.clang-format index 69950423abcf..54f3a797c3f2 100644 --- a/.clang-format +++ b/.clang-format @@ -155,6 +155,7 @@ StatementMacros: - INTEL_PRAGMA_WARN_PUSH - INTEL_PRAGMA_WARN_POP - INTEL_SUPPRESS_warning_1292 + - itkBooleanMacro TabWidth: 2 UseTab: Never ... diff --git a/Modules/Core/Common/include/itkConicShellInteriorExteriorSpatialFunction.h b/Modules/Core/Common/include/itkConicShellInteriorExteriorSpatialFunction.h index 07b79d5248b4..f845ffa4ec2f 100644 --- a/Modules/Core/Common/include/itkConicShellInteriorExteriorSpatialFunction.h +++ b/Modules/Core/Common/include/itkConicShellInteriorExteriorSpatialFunction.h @@ -118,7 +118,7 @@ class ITK_TEMPLATE_EXPORT ConicShellInteriorExteriorSpatialFunction * set to false for the opposite direction. */ itkGetConstMacro(Polarity, bool); itkSetMacro(Polarity, bool); - itkBooleanMacro(Polarity); + itkBooleanMacro(Polarity) protected: ConicShellInteriorExteriorSpatialFunction() = default; diff --git a/Modules/Core/Common/include/itkDataObject.h b/Modules/Core/Common/include/itkDataObject.h index 6a2504c9196e..87e4ddae1640 100644 --- a/Modules/Core/Common/include/itkDataObject.h +++ b/Modules/Core/Common/include/itkDataObject.h @@ -351,7 +351,7 @@ class ITK_FORCE_EXPORT_MACRO(ITKCommon) DataObject : public Object } itkGetConstReferenceMacro(ReleaseDataFlag, bool); - itkBooleanMacro(ReleaseDataFlag); + itkBooleanMacro(ReleaseDataFlag) /** Turn on/off a flag to control whether every object releases its data * after being used by a filter. Being a global flag, it controls the diff --git a/Modules/Core/Common/include/itkFileOutputWindow.h b/Modules/Core/Common/include/itkFileOutputWindow.h index f2e94506459d..8134ffd7dbfb 100644 --- a/Modules/Core/Common/include/itkFileOutputWindow.h +++ b/Modules/Core/Common/include/itkFileOutputWindow.h @@ -69,7 +69,7 @@ class ITKCommon_EXPORT FileOutputWindow : public OutputWindow /** Set/Get the buffer flushing mode */ itkSetMacro(Flush, bool); itkGetConstMacro(Flush, bool); - itkBooleanMacro(Flush); + itkBooleanMacro(Flush) /** Setting append will cause the log file to be * opened in append mode. Otherwise, if the log file exists, @@ -77,7 +77,7 @@ class ITKCommon_EXPORT FileOutputWindow : public OutputWindow * is created. */ itkSetMacro(Append, bool); itkGetConstMacro(Append, bool); - itkBooleanMacro(Append); + itkBooleanMacro(Append) protected: FileOutputWindow(); diff --git a/Modules/Core/Common/include/itkGaussianDerivativeOperator.h b/Modules/Core/Common/include/itkGaussianDerivativeOperator.h index aeb72cca4675..97fa2e21fc07 100644 --- a/Modules/Core/Common/include/itkGaussianDerivativeOperator.h +++ b/Modules/Core/Common/include/itkGaussianDerivativeOperator.h @@ -136,7 +136,7 @@ class ITK_TEMPLATE_EXPORT GaussianDerivativeOperator : public NeighborhoodOperat { return m_NormalizeAcrossScale; } - itkBooleanMacro(NormalizeAcrossScale); + itkBooleanMacro(NormalizeAcrossScale) /** Set/Get the variance of the Gaussian kernel. * diff --git a/Modules/Core/Common/include/itkGaussianSpatialFunction.h b/Modules/Core/Common/include/itkGaussianSpatialFunction.h index 94965a76413b..bd80f3f594be 100644 --- a/Modules/Core/Common/include/itkGaussianSpatialFunction.h +++ b/Modules/Core/Common/include/itkGaussianSpatialFunction.h @@ -78,7 +78,7 @@ class ITK_TEMPLATE_EXPORT GaussianSpatialFunction : public SpatialFunctionRecomputeGaussianKernel(); } } - itkBooleanMacro(UseImageSpacing); + itkBooleanMacro(UseImageSpacing) itkGetMacro(UseImageSpacing, bool); /** The variance for the discrete Gaussian kernel. Sets the variance diff --git a/Modules/Core/SpatialObjects/include/itkContourSpatialObject.h b/Modules/Core/SpatialObjects/include/itkContourSpatialObject.h index 4797fc5eeb0e..cd4d4d842677 100644 --- a/Modules/Core/SpatialObjects/include/itkContourSpatialObject.h +++ b/Modules/Core/SpatialObjects/include/itkContourSpatialObject.h @@ -174,7 +174,7 @@ class ITK_TEMPLATE_EXPORT ContourSpatialObject /** Get if the contour is closed. */ itkGetConstMacro(IsClosed, bool); - itkBooleanMacro(IsClosed); + itkBooleanMacro(IsClosed) /** Get the axis-normal orientation of the contour */ int diff --git a/Modules/Core/SpatialObjects/include/itkImageMaskSpatialObject.h b/Modules/Core/SpatialObjects/include/itkImageMaskSpatialObject.h index c2a638ec5cb9..8d2c79be9795 100644 --- a/Modules/Core/SpatialObjects/include/itkImageMaskSpatialObject.h +++ b/Modules/Core/SpatialObjects/include/itkImageMaskSpatialObject.h @@ -92,7 +92,7 @@ class ITK_TEMPLATE_EXPORT ImageMaskSpatialObject : public ImageSpatialObjectm_ActualXDimensionIsOdd = value; }; itkGetMacro(ActualXDimensionIsOdd, bool); - itkBooleanMacro(ActualXDimensionIsOdd); + itkBooleanMacro(ActualXDimensionIsOdd) private: /** Calculate Nyquist frequency index (m_LargestPositiveFrequencyIndex), Min/Max indices from LargestPossibleRegion. diff --git a/Modules/Filtering/ImageGradient/include/itkGradientImageFilter.h b/Modules/Filtering/ImageGradient/include/itkGradientImageFilter.h index 735dfbe694f8..0e60f23114e7 100644 --- a/Modules/Filtering/ImageGradient/include/itkGradientImageFilter.h +++ b/Modules/Filtering/ImageGradient/include/itkGradientImageFilter.h @@ -116,7 +116,7 @@ class ITK_TEMPLATE_EXPORT GradientImageFilter : public ImageToImageFilter itkOverrideGetNameOfClassMacro(GenerateImageSource); itkSetMacro(UseReferenceImage, bool); - itkBooleanMacro(UseReferenceImage); + itkBooleanMacro(UseReferenceImage) itkGetConstMacro(UseReferenceImage, bool); /** diff --git a/Modules/Filtering/LabelMap/include/itkAttributeKeepNObjectsLabelMapFilter.h b/Modules/Filtering/LabelMap/include/itkAttributeKeepNObjectsLabelMapFilter.h index ef03716003c6..7f07e0119599 100644 --- a/Modules/Filtering/LabelMap/include/itkAttributeKeepNObjectsLabelMapFilter.h +++ b/Modules/Filtering/LabelMap/include/itkAttributeKeepNObjectsLabelMapFilter.h @@ -91,7 +91,7 @@ class ITK_TEMPLATE_EXPORT AttributeKeepNObjectsLabelMapFilter : public InPlaceLa */ itkSetMacro(ReverseOrdering, bool); itkGetConstReferenceMacro(ReverseOrdering, bool); - itkBooleanMacro(ReverseOrdering); + itkBooleanMacro(ReverseOrdering) /** * Set/Get the number of objects to keep diff --git a/Modules/Filtering/LabelMap/include/itkAttributeOpeningLabelMapFilter.h b/Modules/Filtering/LabelMap/include/itkAttributeOpeningLabelMapFilter.h index 5882f454ff27..3f502a301889 100644 --- a/Modules/Filtering/LabelMap/include/itkAttributeOpeningLabelMapFilter.h +++ b/Modules/Filtering/LabelMap/include/itkAttributeOpeningLabelMapFilter.h @@ -100,7 +100,7 @@ class ITK_TEMPLATE_EXPORT AttributeOpeningLabelMapFilter : public InPlaceLabelMa */ itkGetConstMacro(ReverseOrdering, bool); itkSetMacro(ReverseOrdering, bool); - itkBooleanMacro(ReverseOrdering); + itkBooleanMacro(ReverseOrdering) protected: AttributeOpeningLabelMapFilter(); diff --git a/Modules/Filtering/LabelMap/include/itkAttributeRelabelLabelMapFilter.h b/Modules/Filtering/LabelMap/include/itkAttributeRelabelLabelMapFilter.h index cafd6da751f3..bb397871d856 100644 --- a/Modules/Filtering/LabelMap/include/itkAttributeRelabelLabelMapFilter.h +++ b/Modules/Filtering/LabelMap/include/itkAttributeRelabelLabelMapFilter.h @@ -92,7 +92,7 @@ class ITK_TEMPLATE_EXPORT AttributeRelabelLabelMapFilter : public InPlaceLabelMa */ itkSetMacro(ReverseOrdering, bool); itkGetConstReferenceMacro(ReverseOrdering, bool); - itkBooleanMacro(ReverseOrdering); + itkBooleanMacro(ReverseOrdering) protected: AttributeRelabelLabelMapFilter(); diff --git a/Modules/Filtering/LabelMap/include/itkAttributeSelectionLabelMapFilter.h b/Modules/Filtering/LabelMap/include/itkAttributeSelectionLabelMapFilter.h index bc309710b9d2..6e243db8c5ac 100644 --- a/Modules/Filtering/LabelMap/include/itkAttributeSelectionLabelMapFilter.h +++ b/Modules/Filtering/LabelMap/include/itkAttributeSelectionLabelMapFilter.h @@ -115,7 +115,7 @@ class ITK_TEMPLATE_EXPORT AttributeSelectionLabelMapFilter : public InPlaceLabel */ itkGetConstMacro(Exclude, bool); itkSetMacro(Exclude, bool); - itkBooleanMacro(Exclude); + itkBooleanMacro(Exclude) /** Clear the attribute set, and add the attribute passed in parameter */ void diff --git a/Modules/Filtering/LabelMap/include/itkAttributeUniqueLabelMapFilter.h b/Modules/Filtering/LabelMap/include/itkAttributeUniqueLabelMapFilter.h index 544e3d2edb08..580e4ff8356d 100644 --- a/Modules/Filtering/LabelMap/include/itkAttributeUniqueLabelMapFilter.h +++ b/Modules/Filtering/LabelMap/include/itkAttributeUniqueLabelMapFilter.h @@ -97,7 +97,7 @@ class ITK_TEMPLATE_EXPORT AttributeUniqueLabelMapFilter : public InPlaceLabelMap */ itkSetMacro(ReverseOrdering, bool); itkGetConstReferenceMacro(ReverseOrdering, bool); - itkBooleanMacro(ReverseOrdering); + itkBooleanMacro(ReverseOrdering) protected: AttributeUniqueLabelMapFilter(); diff --git a/Modules/Filtering/LabelMap/include/itkBinaryFillholeImageFilter.h b/Modules/Filtering/LabelMap/include/itkBinaryFillholeImageFilter.h index 76183e3a660e..0a1d3df846f7 100644 --- a/Modules/Filtering/LabelMap/include/itkBinaryFillholeImageFilter.h +++ b/Modules/Filtering/LabelMap/include/itkBinaryFillholeImageFilter.h @@ -84,7 +84,7 @@ class ITK_TEMPLATE_EXPORT BinaryFillholeImageFilter : public ImageToImageFilter< */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking diff --git a/Modules/Filtering/LabelMap/include/itkBinaryGrindPeakImageFilter.h b/Modules/Filtering/LabelMap/include/itkBinaryGrindPeakImageFilter.h index 314d8db008f7..53d93d26ca35 100644 --- a/Modules/Filtering/LabelMap/include/itkBinaryGrindPeakImageFilter.h +++ b/Modules/Filtering/LabelMap/include/itkBinaryGrindPeakImageFilter.h @@ -84,7 +84,7 @@ class ITK_TEMPLATE_EXPORT BinaryGrindPeakImageFilter : public ImageToImageFilter */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking diff --git a/Modules/Filtering/LabelMap/include/itkBinaryImageToLabelMapFilter.h b/Modules/Filtering/LabelMap/include/itkBinaryImageToLabelMapFilter.h index 2f72772edf85..f41ada874724 100644 --- a/Modules/Filtering/LabelMap/include/itkBinaryImageToLabelMapFilter.h +++ b/Modules/Filtering/LabelMap/include/itkBinaryImageToLabelMapFilter.h @@ -119,7 +119,7 @@ class ITK_TEMPLATE_EXPORT BinaryImageToLabelMapFilter */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) // only set after completion itkGetConstReferenceMacro(NumberOfObjects, SizeValueType); diff --git a/Modules/Filtering/LabelMap/include/itkBinaryImageToShapeLabelMapFilter.h b/Modules/Filtering/LabelMap/include/itkBinaryImageToShapeLabelMapFilter.h index f60a5593eecf..b7fe1a047666 100644 --- a/Modules/Filtering/LabelMap/include/itkBinaryImageToShapeLabelMapFilter.h +++ b/Modules/Filtering/LabelMap/include/itkBinaryImageToShapeLabelMapFilter.h @@ -106,7 +106,7 @@ class ITK_TEMPLATE_EXPORT BinaryImageToShapeLabelMapFilter : public ImageToImage */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking @@ -136,7 +136,7 @@ class ITK_TEMPLATE_EXPORT BinaryImageToShapeLabelMapFilter : public ImageToImage */ itkSetMacro(ComputeFeretDiameter, bool); itkGetConstReferenceMacro(ComputeFeretDiameter, bool); - itkBooleanMacro(ComputeFeretDiameter); + itkBooleanMacro(ComputeFeretDiameter) /** * Set/Get whether the perimeter should be computed or not. @@ -144,7 +144,7 @@ class ITK_TEMPLATE_EXPORT BinaryImageToShapeLabelMapFilter : public ImageToImage */ itkSetMacro(ComputePerimeter, bool); itkGetConstReferenceMacro(ComputePerimeter, bool); - itkBooleanMacro(ComputePerimeter); + itkBooleanMacro(ComputePerimeter) /** * Set/Get whether the oriented bounding box should be @@ -153,7 +153,7 @@ class ITK_TEMPLATE_EXPORT BinaryImageToShapeLabelMapFilter : public ImageToImage */ itkSetMacro(ComputeOrientedBoundingBox, bool); itkGetConstReferenceMacro(ComputeOrientedBoundingBox, bool); - itkBooleanMacro(ComputeOrientedBoundingBox); + itkBooleanMacro(ComputeOrientedBoundingBox) protected: BinaryImageToShapeLabelMapFilter(); diff --git a/Modules/Filtering/LabelMap/include/itkBinaryImageToStatisticsLabelMapFilter.h b/Modules/Filtering/LabelMap/include/itkBinaryImageToStatisticsLabelMapFilter.h index b3d127e66456..2adaebab90d4 100644 --- a/Modules/Filtering/LabelMap/include/itkBinaryImageToStatisticsLabelMapFilter.h +++ b/Modules/Filtering/LabelMap/include/itkBinaryImageToStatisticsLabelMapFilter.h @@ -92,7 +92,7 @@ class ITK_TEMPLATE_EXPORT BinaryImageToStatisticsLabelMapFilter : public ImageTo */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking @@ -122,7 +122,7 @@ class ITK_TEMPLATE_EXPORT BinaryImageToStatisticsLabelMapFilter : public ImageTo */ itkSetMacro(ComputeFeretDiameter, bool); itkGetConstReferenceMacro(ComputeFeretDiameter, bool); - itkBooleanMacro(ComputeFeretDiameter); + itkBooleanMacro(ComputeFeretDiameter) /** * Set/Get whether the perimeter should be computed or not. The default value @@ -130,7 +130,7 @@ class ITK_TEMPLATE_EXPORT BinaryImageToStatisticsLabelMapFilter : public ImageTo */ itkSetMacro(ComputePerimeter, bool); itkGetConstReferenceMacro(ComputePerimeter, bool); - itkBooleanMacro(ComputePerimeter); + itkBooleanMacro(ComputePerimeter) /** Set the feature image */ void @@ -169,7 +169,7 @@ class ITK_TEMPLATE_EXPORT BinaryImageToStatisticsLabelMapFilter : public ImageTo */ itkSetMacro(ComputeHistogram, bool); itkGetConstReferenceMacro(ComputeHistogram, bool); - itkBooleanMacro(ComputeHistogram); + itkBooleanMacro(ComputeHistogram) /** * Set/Get the number of bins in the histogram. Note that the histogram is used diff --git a/Modules/Filtering/LabelMap/include/itkBinaryReconstructionByDilationImageFilter.h b/Modules/Filtering/LabelMap/include/itkBinaryReconstructionByDilationImageFilter.h index 2f484bac8a3e..e35a07648858 100644 --- a/Modules/Filtering/LabelMap/include/itkBinaryReconstructionByDilationImageFilter.h +++ b/Modules/Filtering/LabelMap/include/itkBinaryReconstructionByDilationImageFilter.h @@ -103,7 +103,7 @@ class ITK_TEMPLATE_EXPORT BinaryReconstructionByDilationImageFilter */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking diff --git a/Modules/Filtering/LabelMap/include/itkBinaryReconstructionByErosionImageFilter.h b/Modules/Filtering/LabelMap/include/itkBinaryReconstructionByErosionImageFilter.h index 999228b56f4b..29933d03005e 100644 --- a/Modules/Filtering/LabelMap/include/itkBinaryReconstructionByErosionImageFilter.h +++ b/Modules/Filtering/LabelMap/include/itkBinaryReconstructionByErosionImageFilter.h @@ -103,7 +103,7 @@ class ITK_TEMPLATE_EXPORT BinaryReconstructionByErosionImageFilter : public Imag */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking diff --git a/Modules/Filtering/LabelMap/include/itkBinaryShapeKeepNObjectsImageFilter.h b/Modules/Filtering/LabelMap/include/itkBinaryShapeKeepNObjectsImageFilter.h index ccfa81029735..37648bd6d20a 100644 --- a/Modules/Filtering/LabelMap/include/itkBinaryShapeKeepNObjectsImageFilter.h +++ b/Modules/Filtering/LabelMap/include/itkBinaryShapeKeepNObjectsImageFilter.h @@ -97,7 +97,7 @@ class ITK_TEMPLATE_EXPORT BinaryShapeKeepNObjectsImageFilter : public ImageToIma */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking @@ -134,7 +134,7 @@ class ITK_TEMPLATE_EXPORT BinaryShapeKeepNObjectsImageFilter : public ImageToIma */ itkGetConstMacro(ReverseOrdering, bool); itkSetMacro(ReverseOrdering, bool); - itkBooleanMacro(ReverseOrdering); + itkBooleanMacro(ReverseOrdering) /** * Set/Get the attribute to use to select the object to keep. The default diff --git a/Modules/Filtering/LabelMap/include/itkBinaryShapeOpeningImageFilter.h b/Modules/Filtering/LabelMap/include/itkBinaryShapeOpeningImageFilter.h index 2792a3bff2ca..8cec9900754d 100644 --- a/Modules/Filtering/LabelMap/include/itkBinaryShapeOpeningImageFilter.h +++ b/Modules/Filtering/LabelMap/include/itkBinaryShapeOpeningImageFilter.h @@ -97,7 +97,7 @@ class ITK_TEMPLATE_EXPORT BinaryShapeOpeningImageFilter : public ImageToImageFil */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking @@ -135,7 +135,7 @@ class ITK_TEMPLATE_EXPORT BinaryShapeOpeningImageFilter : public ImageToImageFil */ itkGetConstMacro(ReverseOrdering, bool); itkSetMacro(ReverseOrdering, bool); - itkBooleanMacro(ReverseOrdering); + itkBooleanMacro(ReverseOrdering) /** * Set/Get the attribute to use to select the object to remove. diff --git a/Modules/Filtering/LabelMap/include/itkBinaryStatisticsKeepNObjectsImageFilter.h b/Modules/Filtering/LabelMap/include/itkBinaryStatisticsKeepNObjectsImageFilter.h index 06f3c6220185..728d9d1be269 100644 --- a/Modules/Filtering/LabelMap/include/itkBinaryStatisticsKeepNObjectsImageFilter.h +++ b/Modules/Filtering/LabelMap/include/itkBinaryStatisticsKeepNObjectsImageFilter.h @@ -100,7 +100,7 @@ class ITK_TEMPLATE_EXPORT BinaryStatisticsKeepNObjectsImageFilter : public Image */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking @@ -137,7 +137,7 @@ class ITK_TEMPLATE_EXPORT BinaryStatisticsKeepNObjectsImageFilter : public Image */ itkGetConstMacro(ReverseOrdering, bool); itkSetMacro(ReverseOrdering, bool); - itkBooleanMacro(ReverseOrdering); + itkBooleanMacro(ReverseOrdering) /** * Set/Get the attribute to use to select the object to keep. The default diff --git a/Modules/Filtering/LabelMap/include/itkBinaryStatisticsOpeningImageFilter.h b/Modules/Filtering/LabelMap/include/itkBinaryStatisticsOpeningImageFilter.h index 6ad1a50a6702..33def4a2e615 100644 --- a/Modules/Filtering/LabelMap/include/itkBinaryStatisticsOpeningImageFilter.h +++ b/Modules/Filtering/LabelMap/include/itkBinaryStatisticsOpeningImageFilter.h @@ -104,7 +104,7 @@ class ITK_TEMPLATE_EXPORT BinaryStatisticsOpeningImageFilter : public ImageToIma */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking @@ -142,7 +142,7 @@ class ITK_TEMPLATE_EXPORT BinaryStatisticsOpeningImageFilter : public ImageToIma */ itkGetConstMacro(ReverseOrdering, bool); itkSetMacro(ReverseOrdering, bool); - itkBooleanMacro(ReverseOrdering); + itkBooleanMacro(ReverseOrdering) /** * Set/Get the attribute to use to select the object to remove. diff --git a/Modules/Filtering/LabelMap/include/itkInPlaceLabelMapFilter.h b/Modules/Filtering/LabelMap/include/itkInPlaceLabelMapFilter.h index 13fc716cf865..1714a4df33c6 100644 --- a/Modules/Filtering/LabelMap/include/itkInPlaceLabelMapFilter.h +++ b/Modules/Filtering/LabelMap/include/itkInPlaceLabelMapFilter.h @@ -125,7 +125,7 @@ class ITK_TEMPLATE_EXPORT InPlaceLabelMapFilter : public LabelMapFilterSetCalculator(CalculatorType::New()); } diff --git a/Modules/IO/GDCM/include/itkGDCMImageIO.h b/Modules/IO/GDCM/include/itkGDCMImageIO.h index d81017d2f346..ea02e77b26f0 100644 --- a/Modules/IO/GDCM/include/itkGDCMImageIO.h +++ b/Modules/IO/GDCM/include/itkGDCMImageIO.h @@ -178,19 +178,19 @@ class ITKIOGDCM_EXPORT GDCMImageIO : public ImageIOBase /** Preserve the original DICOM UIDs of the input files. */ itkSetMacro(KeepOriginalUID, bool); itkGetConstMacro(KeepOriginalUID, bool); - itkBooleanMacro(KeepOriginalUID); + itkBooleanMacro(KeepOriginalUID) /** Parse and load any private tags in the DICOM file. Loading DICOM * files is faster when private tags are not needed. Default is false. */ itkSetMacro(LoadPrivateTags, bool); itkGetConstMacro(LoadPrivateTags, bool); - itkBooleanMacro(LoadPrivateTags); + itkBooleanMacro(LoadPrivateTags) /** Convert Y'CbCr (YBR_FULL, YBR_FULL_422) to RGB. Default is true, * not required for YBR_RCT and YBR_ICT. */ itkSetMacro(ReadYBRtoRGB, bool); itkGetConstMacro(ReadYBRtoRGB, bool); - itkBooleanMacro(ReadYBRtoRGB); + itkBooleanMacro(ReadYBRtoRGB) #if defined(ITKIO_DEPRECATED_GDCM1_API) /** Convenience methods to query patient information and scanner diff --git a/Modules/IO/GDCM/include/itkGDCMSeriesFileNames.h b/Modules/IO/GDCM/include/itkGDCMSeriesFileNames.h index 0e5200204afb..8b6a23795c7b 100644 --- a/Modules/IO/GDCM/include/itkGDCMSeriesFileNames.h +++ b/Modules/IO/GDCM/include/itkGDCMSeriesFileNames.h @@ -141,7 +141,7 @@ class ITKIOGDCM_EXPORT GDCMSeriesFileNames : public ProcessObject * Must be set before the call to SetInputDirectory(). */ itkSetMacro(Recursive, bool); itkGetConstMacro(Recursive, bool); - itkBooleanMacro(Recursive); + itkBooleanMacro(Recursive) /** Use additional series information such as ProtocolName * and SeriesName to identify when a single SeriesUID contains @@ -175,7 +175,7 @@ class ITKIOGDCM_EXPORT GDCMSeriesFileNames : public ProcessObject */ itkSetMacro(LoadSequences, bool); itkGetConstMacro(LoadSequences, bool); - itkBooleanMacro(LoadSequences); + itkBooleanMacro(LoadSequences) /** Parse any private tags in the DICOM file. Defaults to false * to skip private tags. This makes loading DICOM files faster when @@ -183,7 +183,7 @@ class ITKIOGDCM_EXPORT GDCMSeriesFileNames : public ProcessObject */ itkSetMacro(LoadPrivateTags, bool); itkGetConstMacro(LoadPrivateTags, bool); - itkBooleanMacro(LoadPrivateTags); + itkBooleanMacro(LoadPrivateTags) protected: GDCMSeriesFileNames(); diff --git a/Modules/IO/ImageBase/include/itkImageFileReader.h b/Modules/IO/ImageBase/include/itkImageFileReader.h index 5c7d4db52771..4e7b5416df98 100644 --- a/Modules/IO/ImageBase/include/itkImageFileReader.h +++ b/Modules/IO/ImageBase/include/itkImageFileReader.h @@ -116,7 +116,7 @@ class ITK_TEMPLATE_EXPORT ImageFileReader : public ImageSource /** Set the stream On or Off */ itkSetMacro(UseStreaming, bool); itkGetConstReferenceMacro(UseStreaming, bool); - itkBooleanMacro(UseStreaming); + itkBooleanMacro(UseStreaming) protected: ImageFileReader(); diff --git a/Modules/IO/ImageBase/include/itkImageFileWriter.h b/Modules/IO/ImageBase/include/itkImageFileWriter.h index 7cecf9ca096d..3494e02f3865 100644 --- a/Modules/IO/ImageBase/include/itkImageFileWriter.h +++ b/Modules/IO/ImageBase/include/itkImageFileWriter.h @@ -201,7 +201,7 @@ class ITK_TEMPLATE_EXPORT ImageFileWriter : public ProcessObject /** Set the compression On or Off */ itkSetMacro(UseCompression, bool); itkGetConstReferenceMacro(UseCompression, bool); - itkBooleanMacro(UseCompression); + itkBooleanMacro(UseCompression) /** Set the compression level. \sa ImageIOBase for details. * Set to a negative number to use ImageIO's default compression level. */ @@ -216,7 +216,7 @@ class ITK_TEMPLATE_EXPORT ImageFileWriter : public ProcessObject * the ImageIO object. */ itkSetMacro(UseInputMetaDataDictionary, bool); itkGetConstReferenceMacro(UseInputMetaDataDictionary, bool); - itkBooleanMacro(UseInputMetaDataDictionary); + itkBooleanMacro(UseInputMetaDataDictionary) protected: ImageFileWriter() = default; diff --git a/Modules/IO/ImageBase/include/itkImageIOBase.h b/Modules/IO/ImageBase/include/itkImageIOBase.h index 0a84d4a4ff32..ca7569c8e2d1 100644 --- a/Modules/IO/ImageBase/include/itkImageIOBase.h +++ b/Modules/IO/ImageBase/include/itkImageIOBase.h @@ -258,7 +258,7 @@ class ITKIOImageBase_EXPORT ImageIOBase : public LightProcessObject /** Set/Get a boolean to use the compression or not. */ itkSetMacro(UseCompression, bool); itkGetConstMacro(UseCompression, bool); - itkBooleanMacro(UseCompression); + itkBooleanMacro(UseCompression) /** \brief Set/Get a compression level hint * @@ -286,12 +286,12 @@ class ITKIOImageBase_EXPORT ImageIOBase : public LightProcessObject /** Set/Get a boolean to use streaming while reading or not. */ itkSetMacro(UseStreamedReading, bool); itkGetConstMacro(UseStreamedReading, bool); - itkBooleanMacro(UseStreamedReading); + itkBooleanMacro(UseStreamedReading) /** Set/Get a boolean to use streaming while writing or not. */ itkSetMacro(UseStreamedWriting, bool); itkGetConstMacro(UseStreamedWriting, bool); - itkBooleanMacro(UseStreamedWriting); + itkBooleanMacro(UseStreamedWriting) /** Set/Get a boolean to perform RGB palette expansion. * If true, palette image is read as RGB, @@ -299,13 +299,13 @@ class ITKIOImageBase_EXPORT ImageIOBase : public LightProcessObject * A RGB image is always read as RGB.*/ itkSetMacro(ExpandRGBPalette, bool); itkGetConstMacro(ExpandRGBPalette, bool); - itkBooleanMacro(ExpandRGBPalette); + itkBooleanMacro(ExpandRGBPalette) /** Set/Get a boolean to include a color palette while writing * the image file. Applies only for scalar Pixels*/ itkSetMacro(WritePalette, bool); itkGetConstMacro(WritePalette, bool); - itkBooleanMacro(WritePalette); + itkBooleanMacro(WritePalette) /** Determine whether a palletized image file has been read as a scalar image * plus a color palette. diff --git a/Modules/IO/ImageBase/include/itkImageSeriesReader.h b/Modules/IO/ImageBase/include/itkImageSeriesReader.h index 676f1f384e3c..f0bd9b3012ef 100644 --- a/Modules/IO/ImageBase/include/itkImageSeriesReader.h +++ b/Modules/IO/ImageBase/include/itkImageSeriesReader.h @@ -118,13 +118,13 @@ class ITK_TEMPLATE_EXPORT ImageSeriesReader : public ImageSource * from last to first */ itkSetMacro(ReverseOrder, bool); itkGetConstMacro(ReverseOrder, bool); - itkBooleanMacro(ReverseOrder); + itkBooleanMacro(ReverseOrder) /** Do we want to force orthogonal direction cosines? On by default. * Turning it off enables proper reading of DICOM series with gantry tilt. */ itkSetMacro(ForceOrthogonalDirection, bool); itkGetConstMacro(ForceOrthogonalDirection, bool); - itkBooleanMacro(ForceOrthogonalDirection); + itkBooleanMacro(ForceOrthogonalDirection) /** Set/Get the ImageIO helper class. By default, the * ImageSeriesReader uses the factory mechanism of the @@ -144,7 +144,7 @@ class ITK_TEMPLATE_EXPORT ImageSeriesReader : public ImageSource */ itkSetMacro(MetaDataDictionaryArrayUpdate, bool); itkGetConstMacro(MetaDataDictionaryArrayUpdate, bool); - itkBooleanMacro(MetaDataDictionaryArrayUpdate); + itkBooleanMacro(MetaDataDictionaryArrayUpdate) /** Prepare the allocation of the output image during the first back * propagation of the pipeline. */ @@ -167,7 +167,7 @@ class ITK_TEMPLATE_EXPORT ImageSeriesReader : public ImageSource /** Set the stream On or Off */ itkSetMacro(UseStreaming, bool); itkGetConstReferenceMacro(UseStreaming, bool); - itkBooleanMacro(UseStreaming); + itkBooleanMacro(UseStreaming) /** Set the relative threshold for issuing warnings about non-uniform sampling */ itkSetMacro(SpacingWarningRelThreshold, double); diff --git a/Modules/IO/ImageBase/include/itkImageSeriesWriter.h b/Modules/IO/ImageBase/include/itkImageSeriesWriter.h index ce81b62b3b23..23ab21c2cca3 100644 --- a/Modules/IO/ImageBase/include/itkImageSeriesWriter.h +++ b/Modules/IO/ImageBase/include/itkImageSeriesWriter.h @@ -208,7 +208,7 @@ class ITK_TEMPLATE_EXPORT ImageSeriesWriter : public ProcessObject /** Set the compression On or Off */ itkSetMacro(UseCompression, bool); itkGetConstReferenceMacro(UseCompression, bool); - itkBooleanMacro(UseCompression); + itkBooleanMacro(UseCompression) protected: ImageSeriesWriter(); diff --git a/Modules/IO/ImageBase/include/itkRegularExpressionSeriesFileNames.h b/Modules/IO/ImageBase/include/itkRegularExpressionSeriesFileNames.h index 25682b67b03b..a5e237884e73 100644 --- a/Modules/IO/ImageBase/include/itkRegularExpressionSeriesFileNames.h +++ b/Modules/IO/ImageBase/include/itkRegularExpressionSeriesFileNames.h @@ -103,7 +103,7 @@ class ITKIOImageBase_EXPORT RegularExpressionSeriesFileNames : public Object * submatch alphabetically. */ itkSetMacro(NumericSort, bool); itkGetConstMacro(NumericSort, bool); - itkBooleanMacro(NumericSort); + itkBooleanMacro(NumericSort) /** Returns a vector containing the series' file names. The file * names are sorted by the sub expression selected by the SubMatch id. */ diff --git a/Modules/IO/NIFTI/include/itkNiftiImageIO.h b/Modules/IO/NIFTI/include/itkNiftiImageIO.h index 31e84f8bbbd6..24f1d0feb410 100644 --- a/Modules/IO/NIFTI/include/itkNiftiImageIO.h +++ b/Modules/IO/NIFTI/include/itkNiftiImageIO.h @@ -198,7 +198,7 @@ class ITKIONIFTI_EXPORT NiftiImageIO : public ImageIOBase */ itkSetMacro(ConvertRASVectors, bool); itkGetConstMacro(ConvertRASVectors, bool); - itkBooleanMacro(ConvertRASVectors); + itkBooleanMacro(ConvertRASVectors) /** Enable conversion of vector coordinates between RAS coordinate system (in NIFTI file) and * LPS (ITK convention) when reading or writing a "displacement vector" file (intent code: 1006). @@ -217,12 +217,12 @@ class ITKIONIFTI_EXPORT NiftiImageIO : public ImageIOBase */ itkSetMacro(ConvertRASDisplacementVectors, bool); itkGetConstMacro(ConvertRASDisplacementVectors, bool); - itkBooleanMacro(ConvertRASDisplacementVectors); + itkBooleanMacro(ConvertRASDisplacementVectors) /** Allow to read nifti files with non-orthogonal sform*/ itkSetMacro(SFORM_Permissive, bool); itkGetConstMacro(SFORM_Permissive, bool); - itkBooleanMacro(SFORM_Permissive); + itkBooleanMacro(SFORM_Permissive) protected: NiftiImageIO(); diff --git a/Modules/IO/SpatialObjects/include/itkSpatialObjectWriter.h b/Modules/IO/SpatialObjects/include/itkSpatialObjectWriter.h index eafc391b2df9..0ac80e8246a9 100644 --- a/Modules/IO/SpatialObjects/include/itkSpatialObjectWriter.h +++ b/Modules/IO/SpatialObjects/include/itkSpatialObjectWriter.h @@ -79,7 +79,7 @@ class ITK_TEMPLATE_EXPORT SpatialObjectWriter : public Object itkSetMacro(BinaryPoints, bool); itkGetConstMacro(BinaryPoints, bool); - itkBooleanMacro(BinaryPoints); + itkBooleanMacro(BinaryPoints) void SetTransformPrecision(unsigned int precision); @@ -90,7 +90,7 @@ class ITK_TEMPLATE_EXPORT SpatialObjectWriter : public Object /** Set/Get if the images should be written in a different file */ itkSetMacro(WriteImagesInSeparateFile, bool); itkGetConstMacro(WriteImagesInSeparateFile, bool); - itkBooleanMacro(WriteImagesInSeparateFile); + itkBooleanMacro(WriteImagesInSeparateFile) /** Add a converter for a new MetaObject/SpatialObject type */ void diff --git a/Modules/IO/TransformBase/include/itkTransformFileWriter.h b/Modules/IO/TransformBase/include/itkTransformFileWriter.h index 4db55116e027..debe01fc56b3 100644 --- a/Modules/IO/TransformBase/include/itkTransformFileWriter.h +++ b/Modules/IO/TransformBase/include/itkTransformFileWriter.h @@ -83,12 +83,12 @@ class ITKIOTransformBase_TEMPLATE_EXPORT TransformFileWriterTemplate : public Li /** Set/Get the write mode (append/overwrite) for the filter. */ itkSetMacro(AppendMode, bool); itkGetConstMacro(AppendMode, bool); - itkBooleanMacro(AppendMode); + itkBooleanMacro(AppendMode) /** Set/Get a boolean to use the compression or not. */ itkSetMacro(UseCompression, bool); itkGetConstMacro(UseCompression, bool); - itkBooleanMacro(UseCompression); + itkBooleanMacro(UseCompression) /** Set/Get the input transform to write */ void diff --git a/Modules/IO/TransformBase/include/itkTransformIOBase.h b/Modules/IO/TransformBase/include/itkTransformIOBase.h index 584c3dc70f47..79b7caac02e2 100644 --- a/Modules/IO/TransformBase/include/itkTransformIOBase.h +++ b/Modules/IO/TransformBase/include/itkTransformIOBase.h @@ -127,12 +127,12 @@ class ITKIOTransformBase_TEMPLATE_EXPORT TransformIOBaseTemplate : public LightP /** Set the writer to append to the specified file */ itkSetMacro(AppendMode, bool); itkGetConstMacro(AppendMode, bool); - itkBooleanMacro(AppendMode); + itkBooleanMacro(AppendMode) /** Set/Get a boolean to use the compression or not. */ itkSetMacro(UseCompression, bool); itkGetConstMacro(UseCompression, bool); - itkBooleanMacro(UseCompression); + itkBooleanMacro(UseCompression) /** The transform type has a string representation used when reading * and writing transform files. In the case where a double-precision diff --git a/Modules/Numerics/Optimizers/include/itkAmoebaOptimizer.h b/Modules/Numerics/Optimizers/include/itkAmoebaOptimizer.h index aae6ce036cb1..160702e84c04 100644 --- a/Modules/Numerics/Optimizers/include/itkAmoebaOptimizer.h +++ b/Modules/Numerics/Optimizers/include/itkAmoebaOptimizer.h @@ -112,7 +112,7 @@ class ITKOptimizers_EXPORT AmoebaOptimizer : public SingleValuedNonLinearVnlOpti * simplex as [x0[0], x0[1], ..., x0[i]+InitialSimplexDelta[i], ..., * x0[d-1]]. */ itkSetMacro(AutomaticInitialSimplex, bool); - itkBooleanMacro(AutomaticInitialSimplex); + itkBooleanMacro(AutomaticInitialSimplex) itkGetConstMacro(AutomaticInitialSimplex, bool); /** Set/Get the mode that determines if we want to use multiple runs of the @@ -122,7 +122,7 @@ class ITKOptimizers_EXPORT AmoebaOptimizer : public SingleValuedNonLinearVnlOpti * that from the previous iteration. */ itkSetMacro(OptimizeWithRestarts, bool); - itkBooleanMacro(OptimizeWithRestarts); + itkBooleanMacro(OptimizeWithRestarts) itkGetConstMacro(OptimizeWithRestarts, bool); /** Set/Get the deltas that are used to define the initial simplex diff --git a/Modules/Numerics/Optimizers/include/itkCumulativeGaussianOptimizer.h b/Modules/Numerics/Optimizers/include/itkCumulativeGaussianOptimizer.h index fe4e8a2a1ae3..1b8b37b1ea54 100644 --- a/Modules/Numerics/Optimizers/include/itkCumulativeGaussianOptimizer.h +++ b/Modules/Numerics/Optimizers/include/itkCumulativeGaussianOptimizer.h @@ -72,7 +72,7 @@ class ITKOptimizers_EXPORT CumulativeGaussianOptimizer : public MultipleValuedNo itkGetMacro(DifferenceTolerance, double); itkSetMacro(Verbose, bool); itkGetMacro(Verbose, bool); - itkBooleanMacro(Verbose); + itkBooleanMacro(Verbose) itkGetMacro(ComputedMean, double); itkGetMacro(ComputedStandardDeviation, double); itkGetMacro(UpperAsymptote, double); diff --git a/Modules/Numerics/Optimizers/include/itkGradientDescentOptimizer.h b/Modules/Numerics/Optimizers/include/itkGradientDescentOptimizer.h index e970db8f179f..3c2d817fdfa7 100644 --- a/Modules/Numerics/Optimizers/include/itkGradientDescentOptimizer.h +++ b/Modules/Numerics/Optimizers/include/itkGradientDescentOptimizer.h @@ -100,7 +100,7 @@ class ITKOptimizers_EXPORT GradientDescentOptimizer : public SingleValuedNonLine /** Methods to configure the cost function. */ itkGetConstReferenceMacro(Maximize, bool); itkSetMacro(Maximize, bool); - itkBooleanMacro(Maximize); + itkBooleanMacro(Maximize) bool GetMinimize() const { diff --git a/Modules/Numerics/Optimizers/include/itkLBFGSBOptimizer.h b/Modules/Numerics/Optimizers/include/itkLBFGSBOptimizer.h index 2d8c9e716e36..cfb0535cbea8 100644 --- a/Modules/Numerics/Optimizers/include/itkLBFGSBOptimizer.h +++ b/Modules/Numerics/Optimizers/include/itkLBFGSBOptimizer.h @@ -112,7 +112,7 @@ class ITKOptimizers_EXPORT LBFGSBOptimizer : public SingleValuedNonLinearVnlOpti SetTrace(bool flag); itkGetMacro(Trace, bool); - itkBooleanMacro(Trace); + itkBooleanMacro(Trace) /** Set the lower bound value for each variable. */ virtual void diff --git a/Modules/Numerics/Optimizers/include/itkLBFGSOptimizer.h b/Modules/Numerics/Optimizers/include/itkLBFGSOptimizer.h index 9d7621cea9a6..e63318bc4331 100644 --- a/Modules/Numerics/Optimizers/include/itkLBFGSOptimizer.h +++ b/Modules/Numerics/Optimizers/include/itkLBFGSOptimizer.h @@ -125,7 +125,7 @@ class ITKOptimizers_EXPORT LBFGSOptimizer : public SingleValuedNonLinearVnlOptim SetTrace(bool flag); itkGetMacro(Trace, bool); - itkBooleanMacro(Trace); + itkBooleanMacro(Trace) /** Set/Get the maximum number of function evaluations allowed. */ virtual void diff --git a/Modules/Numerics/Optimizers/include/itkOnePlusOneEvolutionaryOptimizer.h b/Modules/Numerics/Optimizers/include/itkOnePlusOneEvolutionaryOptimizer.h index d19935fdb3a8..0eb747e50c92 100644 --- a/Modules/Numerics/Optimizers/include/itkOnePlusOneEvolutionaryOptimizer.h +++ b/Modules/Numerics/Optimizers/include/itkOnePlusOneEvolutionaryOptimizer.h @@ -92,7 +92,7 @@ class ITKOptimizers_EXPORT OnePlusOneEvolutionaryOptimizer : public SingleValued /** Set if the Optimizer should Maximize the metric */ itkSetMacro(Maximize, bool); - itkBooleanMacro(Maximize); + itkBooleanMacro(Maximize) itkGetConstReferenceMacro(Maximize, bool); bool diff --git a/Modules/Numerics/Optimizers/include/itkRegularStepGradientDescentBaseOptimizer.h b/Modules/Numerics/Optimizers/include/itkRegularStepGradientDescentBaseOptimizer.h index c74bff690c1d..129e0b5bcdbd 100644 --- a/Modules/Numerics/Optimizers/include/itkRegularStepGradientDescentBaseOptimizer.h +++ b/Modules/Numerics/Optimizers/include/itkRegularStepGradientDescentBaseOptimizer.h @@ -86,7 +86,7 @@ class ITKOptimizers_EXPORT RegularStepGradientDescentBaseOptimizer : public Sing /** Specify whether to minimize or maximize the cost function. */ itkSetMacro(Maximize, bool); itkGetConstReferenceMacro(Maximize, bool); - itkBooleanMacro(Maximize); + itkBooleanMacro(Maximize) bool GetMinimize() const { diff --git a/Modules/Numerics/Optimizers/include/itkSingleValuedNonLinearVnlOptimizer.h b/Modules/Numerics/Optimizers/include/itkSingleValuedNonLinearVnlOptimizer.h index fe0df0b3fccf..ecd7d8220bc3 100644 --- a/Modules/Numerics/Optimizers/include/itkSingleValuedNonLinearVnlOptimizer.h +++ b/Modules/Numerics/Optimizers/include/itkSingleValuedNonLinearVnlOptimizer.h @@ -70,7 +70,7 @@ class ITKOptimizers_EXPORT SingleValuedNonLinearVnlOptimizer : public SingleValu * -1.0. */ itkGetConstReferenceMacro(Maximize, bool); itkSetMacro(Maximize, bool); - itkBooleanMacro(Maximize); + itkBooleanMacro(Maximize) bool GetMinimize() const { diff --git a/Modules/Numerics/Optimizersv4/include/itkAmoebaOptimizerv4.h b/Modules/Numerics/Optimizersv4/include/itkAmoebaOptimizerv4.h index e5b3ee327a61..7e3bee980f41 100644 --- a/Modules/Numerics/Optimizersv4/include/itkAmoebaOptimizerv4.h +++ b/Modules/Numerics/Optimizersv4/include/itkAmoebaOptimizerv4.h @@ -100,7 +100,7 @@ class ITKOptimizersv4_EXPORT AmoebaOptimizerv4 : public SingleValuedNonLinearVnl * simplex as [x0[0], x0[1], ..., x0[i]+InitialSimplexDelta[i], ..., * x0[d-1]]. */ itkSetMacro(AutomaticInitialSimplex, bool); - itkBooleanMacro(AutomaticInitialSimplex); + itkBooleanMacro(AutomaticInitialSimplex) itkGetConstMacro(AutomaticInitialSimplex, bool); /** Set/Get the mode that determines if we want to use multiple runs of the @@ -110,7 +110,7 @@ class ITKOptimizersv4_EXPORT AmoebaOptimizerv4 : public SingleValuedNonLinearVnl * that from the previous iteration. */ itkSetMacro(OptimizeWithRestarts, bool); - itkBooleanMacro(OptimizeWithRestarts); + itkBooleanMacro(OptimizeWithRestarts) itkGetConstMacro(OptimizeWithRestarts, bool); /** Set/Get the deltas that are used to define the initial simplex diff --git a/Modules/Numerics/Optimizersv4/include/itkCommandIterationUpdatev4.h b/Modules/Numerics/Optimizersv4/include/itkCommandIterationUpdatev4.h index 43b59beb63a1..8fad7555f2f3 100644 --- a/Modules/Numerics/Optimizersv4/include/itkCommandIterationUpdatev4.h +++ b/Modules/Numerics/Optimizersv4/include/itkCommandIterationUpdatev4.h @@ -128,7 +128,7 @@ class CommandIterationUpdatev4 : public Command */ itkSetMacro(PrintParameters, bool); itkGetMacro(PrintParameters, bool); - itkBooleanMacro(PrintParameters); + itkBooleanMacro(PrintParameters) protected: diff --git a/Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerv4.h b/Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerv4.h index 0738f5309580..f3bb0b5c5f88 100644 --- a/Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerv4.h +++ b/Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerv4.h @@ -131,7 +131,7 @@ class ITK_TEMPLATE_EXPORT GradientDescentOptimizerv4Template */ itkSetMacro(DoEstimateLearningRateAtEachIteration, bool); itkGetConstReferenceMacro(DoEstimateLearningRateAtEachIteration, bool); - itkBooleanMacro(DoEstimateLearningRateAtEachIteration); + itkBooleanMacro(DoEstimateLearningRateAtEachIteration) /** Option to use ScalesEstimator for learning rate estimation * only *once*, during first iteration. The estimation overrides the @@ -142,7 +142,7 @@ class ITK_TEMPLATE_EXPORT GradientDescentOptimizerv4Template */ itkSetMacro(DoEstimateLearningRateOnce, bool); itkGetConstReferenceMacro(DoEstimateLearningRateOnce, bool); - itkBooleanMacro(DoEstimateLearningRateOnce); + itkBooleanMacro(DoEstimateLearningRateOnce) /** Minimum convergence value for convergence checking. * The convergence checker calculates convergence value by fitting to @@ -183,7 +183,7 @@ class ITK_TEMPLATE_EXPORT GradientDescentOptimizerv4Template */ itkSetMacro(ReturnBestParametersAndValue, bool); itkGetConstReferenceMacro(ReturnBestParametersAndValue, bool); - itkBooleanMacro(ReturnBestParametersAndValue); + itkBooleanMacro(ReturnBestParametersAndValue) /** Start and run the optimization. */ void diff --git a/Modules/Numerics/Optimizersv4/include/itkLBFGS2Optimizerv4.h b/Modules/Numerics/Optimizersv4/include/itkLBFGS2Optimizerv4.h index 534dd7fa72a6..448294633200 100644 --- a/Modules/Numerics/Optimizersv4/include/itkLBFGS2Optimizerv4.h +++ b/Modules/Numerics/Optimizersv4/include/itkLBFGS2Optimizerv4.h @@ -459,7 +459,7 @@ class ITK_TEMPLATE_EXPORT LBFGS2Optimizerv4Template */ itkSetMacro(EstimateScalesAtEachIteration, bool); itkGetConstReferenceMacro(EstimateScalesAtEachIteration, bool); - itkBooleanMacro(EstimateScalesAtEachIteration); + itkBooleanMacro(EstimateScalesAtEachIteration) protected: LBFGS2Optimizerv4Template(); diff --git a/Modules/Numerics/Optimizersv4/include/itkLBFGSOptimizerBasev4.h b/Modules/Numerics/Optimizersv4/include/itkLBFGSOptimizerBasev4.h index 31383fe3ea3b..ec4a3aa0e139 100644 --- a/Modules/Numerics/Optimizersv4/include/itkLBFGSOptimizerBasev4.h +++ b/Modules/Numerics/Optimizersv4/include/itkLBFGSOptimizerBasev4.h @@ -119,7 +119,7 @@ class ITK_TEMPLATE_EXPORT LBFGSOptimizerBasev4 : public SingleValuedNonLinearVnl SetTrace(bool flag); itkGetConstMacro(Trace, bool); - itkBooleanMacro(Trace); + itkBooleanMacro(Trace) /** Set/Get the maximum number of function evaluations allowed. */ virtual void diff --git a/Modules/Numerics/Optimizersv4/include/itkObjectToObjectOptimizerBase.h b/Modules/Numerics/Optimizersv4/include/itkObjectToObjectOptimizerBase.h index 24bc89059b3b..567ea6749369 100644 --- a/Modules/Numerics/Optimizersv4/include/itkObjectToObjectOptimizerBase.h +++ b/Modules/Numerics/Optimizersv4/include/itkObjectToObjectOptimizerBase.h @@ -214,7 +214,7 @@ class ITK_TEMPLATE_EXPORT ObjectToObjectOptimizerBaseTemplate : public Object */ itkSetMacro(DoEstimateScales, bool); itkGetConstReferenceMacro(DoEstimateScales, bool); - itkBooleanMacro(DoEstimateScales); + itkBooleanMacro(DoEstimateScales) /** Set the number of work units to use when threading. * The default is the global default number of work units diff --git a/Modules/Numerics/Optimizersv4/include/itkOnePlusOneEvolutionaryOptimizerv4.h b/Modules/Numerics/Optimizersv4/include/itkOnePlusOneEvolutionaryOptimizerv4.h index 6c5dffe56f70..a8ab4de89c08 100644 --- a/Modules/Numerics/Optimizersv4/include/itkOnePlusOneEvolutionaryOptimizerv4.h +++ b/Modules/Numerics/Optimizersv4/include/itkOnePlusOneEvolutionaryOptimizerv4.h @@ -160,7 +160,7 @@ class ITK_TEMPLATE_EXPORT OnePlusOneEvolutionaryOptimizerv4 itkGetConstReferenceMacro(CatchGetValueException, bool); itkSetMacro(CatchGetValueException, bool); - itkBooleanMacro(CatchGetValueException); + itkBooleanMacro(CatchGetValueException) itkGetConstReferenceMacro(MetricWorstPossibleValue, double); itkSetMacro(MetricWorstPossibleValue, double); diff --git a/Modules/Numerics/Optimizersv4/include/itkPowellOptimizerv4.h b/Modules/Numerics/Optimizersv4/include/itkPowellOptimizerv4.h index 0e2cbcc37d4a..56e9f330eec0 100644 --- a/Modules/Numerics/Optimizersv4/include/itkPowellOptimizerv4.h +++ b/Modules/Numerics/Optimizersv4/include/itkPowellOptimizerv4.h @@ -126,7 +126,7 @@ class ITK_TEMPLATE_EXPORT PowellOptimizerv4 : public ObjectToObjectOptimizerBase itkGetConstReferenceMacro(CatchGetValueException, bool); itkSetMacro(CatchGetValueException, bool); - itkBooleanMacro(CatchGetValueException); + itkBooleanMacro(CatchGetValueException) itkGetConstReferenceMacro(MetricWorstPossibleValue, double); itkSetMacro(MetricWorstPossibleValue, double); diff --git a/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesEstimator.h b/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesEstimator.h index fcc368afbd75..3cc32081e0af 100644 --- a/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesEstimator.h +++ b/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesEstimator.h @@ -158,7 +158,7 @@ class ITK_TEMPLATE_EXPORT RegistrationParameterScalesEstimator */ itkSetMacro(TransformForward, bool); itkGetConstMacro(TransformForward, bool); - itkBooleanMacro(TransformForward); + itkBooleanMacro(TransformForward) /** Get/Set a point set for virtual domain sampling. */ #ifndef ITK_FUTURE_LEGACY_REMOVE diff --git a/Modules/Numerics/Statistics/include/itkHistogram.h b/Modules/Numerics/Statistics/include/itkHistogram.h index 4ba8ea1ee102..00e10e5b945e 100644 --- a/Modules/Numerics/Statistics/include/itkHistogram.h +++ b/Modules/Numerics/Statistics/include/itkHistogram.h @@ -159,7 +159,7 @@ class ITK_TEMPLATE_EXPORT Histogram : public Sample> /** Set/Get whether the bins at the edges of the histogram extend to +/- infinity. */ itkGetConstMacro(ClipBinsAtEnds, bool); itkSetMacro(ClipBinsAtEnds, bool); - itkBooleanMacro(ClipBinsAtEnds); + itkBooleanMacro(ClipBinsAtEnds) /** Returns true if the given index is out of bound meaning one of index * is not between [0, last index] */ diff --git a/Modules/Numerics/Statistics/include/itkImageToHistogramFilter.h b/Modules/Numerics/Statistics/include/itkImageToHistogramFilter.h index 7b9e88125b08..30a871252ae2 100644 --- a/Modules/Numerics/Statistics/include/itkImageToHistogramFilter.h +++ b/Modules/Numerics/Statistics/include/itkImageToHistogramFilter.h @@ -119,7 +119,7 @@ class ITK_TEMPLATE_EXPORT ImageToHistogramFilter : public ImageSink * minimum and maximum of the histogram are going to be computed * automatically from the values of the sample */ itkSetGetDecoratedInputMacro(AutoMinimumMaximum, bool); - itkBooleanMacro(AutoMinimumMaximum); + itkBooleanMacro(AutoMinimumMaximum) /** Method that facilitates the use of this filter in the internal * pipeline of another filter. */ diff --git a/Modules/Numerics/Statistics/include/itkImageToNeighborhoodSampleAdaptor.h b/Modules/Numerics/Statistics/include/itkImageToNeighborhoodSampleAdaptor.h index 5173683b6bba..64e98c51ffdc 100644 --- a/Modules/Numerics/Statistics/include/itkImageToNeighborhoodSampleAdaptor.h +++ b/Modules/Numerics/Statistics/include/itkImageToNeighborhoodSampleAdaptor.h @@ -135,7 +135,7 @@ class ITK_TEMPLATE_EXPORT ImageToNeighborhoodSampleAdaptor itkGetConstMacro(UseImageRegion, bool); /** Convenience methods to turn on/off the UseImageRegion flag */ - itkBooleanMacro(UseImageRegion); + itkBooleanMacro(UseImageRegion) /** returns the number of measurement vectors in this container */ diff --git a/Modules/Numerics/Statistics/include/itkScalarImageToCooccurrenceMatrixFilter.h b/Modules/Numerics/Statistics/include/itkScalarImageToCooccurrenceMatrixFilter.h index 46b5064911c8..0d433701af1c 100644 --- a/Modules/Numerics/Statistics/include/itkScalarImageToCooccurrenceMatrixFilter.h +++ b/Modules/Numerics/Statistics/include/itkScalarImageToCooccurrenceMatrixFilter.h @@ -158,7 +158,7 @@ class ITK_TEMPLATE_EXPORT ScalarImageToCooccurrenceMatrixFilter : public Process total frequency). Normalization is off by default. */ itkSetMacro(Normalize, bool); itkGetConstMacro(Normalize, bool); - itkBooleanMacro(Normalize); + itkBooleanMacro(Normalize) /** Method to set/get the image */ using Superclass::SetInput; diff --git a/Modules/Numerics/Statistics/include/itkScalarImageToTextureFeaturesFilter.h b/Modules/Numerics/Statistics/include/itkScalarImageToTextureFeaturesFilter.h index e84709d21287..49d83cd333fc 100644 --- a/Modules/Numerics/Statistics/include/itkScalarImageToTextureFeaturesFilter.h +++ b/Modules/Numerics/Statistics/include/itkScalarImageToTextureFeaturesFilter.h @@ -211,7 +211,7 @@ class ITK_TEMPLATE_EXPORT ScalarImageToTextureFeaturesFilter : public ProcessObj itkGetConstMacro(FastCalculations, bool); itkSetMacro(FastCalculations, bool); - itkBooleanMacro(FastCalculations); + itkBooleanMacro(FastCalculations) protected: ScalarImageToTextureFeaturesFilter(); diff --git a/Modules/Numerics/Statistics/include/itkSubsamplerBase.h b/Modules/Numerics/Statistics/include/itkSubsamplerBase.h index 4a9e0afdfc81..13806c28bfdb 100644 --- a/Modules/Numerics/Statistics/include/itkSubsamplerBase.h +++ b/Modules/Numerics/Statistics/include/itkSubsamplerBase.h @@ -85,7 +85,7 @@ class ITK_TEMPLATE_EXPORT SubsamplerBase : public Object */ itkSetMacro(CanSelectQuery, bool); itkGetConstReferenceMacro(CanSelectQuery, bool); - itkBooleanMacro(CanSelectQuery); + itkBooleanMacro(CanSelectQuery) /** Provide an interface to set the seed. * The seed value will be used by subclasses where appropriate. diff --git a/Modules/Numerics/Statistics/include/itkUniformRandomSpatialNeighborSubsampler.h b/Modules/Numerics/Statistics/include/itkUniformRandomSpatialNeighborSubsampler.h index c38c044f75cd..3b37cec85ac2 100644 --- a/Modules/Numerics/Statistics/include/itkUniformRandomSpatialNeighborSubsampler.h +++ b/Modules/Numerics/Statistics/include/itkUniformRandomSpatialNeighborSubsampler.h @@ -112,7 +112,7 @@ class ITK_TEMPLATE_EXPORT UniformRandomSpatialNeighborSubsampler : public Spatia } } - itkBooleanMacro(UseClockForSeed); + itkBooleanMacro(UseClockForSeed) itkGetConstMacro(UseClockForSeed, bool); virtual void diff --git a/Modules/Registration/Common/include/itkCenteredVersorTransformInitializer.h b/Modules/Registration/Common/include/itkCenteredVersorTransformInitializer.h index b9204ee7363e..8b157e223808 100644 --- a/Modules/Registration/Common/include/itkCenteredVersorTransformInitializer.h +++ b/Modules/Registration/Common/include/itkCenteredVersorTransformInitializer.h @@ -88,7 +88,7 @@ class ITK_TEMPLATE_EXPORT CenteredVersorTransformInitializer * initial rotation that will align them. */ itkSetMacro(ComputeRotation, bool); itkGetMacro(ComputeRotation, bool); - itkBooleanMacro(ComputeRotation); + itkBooleanMacro(ComputeRotation) protected: CenteredVersorTransformInitializer(); diff --git a/Modules/Registration/Common/include/itkEuclideanDistancePointMetric.h b/Modules/Registration/Common/include/itkEuclideanDistancePointMetric.h index b7dc6bda4be9..e36c81f9f20a 100644 --- a/Modules/Registration/Common/include/itkEuclideanDistancePointMetric.h +++ b/Modules/Registration/Common/include/itkEuclideanDistancePointMetric.h @@ -113,7 +113,7 @@ class ITK_TEMPLATE_EXPORT EuclideanDistancePointMetric * of distances^4 instead of the sum of distances^2. Default is false. */ itkSetMacro(ComputeSquaredDistance, bool); itkGetConstMacro(ComputeSquaredDistance, bool); - itkBooleanMacro(ComputeSquaredDistance); + itkBooleanMacro(ComputeSquaredDistance) protected: EuclideanDistancePointMetric(); diff --git a/Modules/Registration/Common/include/itkImageToImageMetric.h b/Modules/Registration/Common/include/itkImageToImageMetric.h index 95876d236799..741871122354 100644 --- a/Modules/Registration/Common/include/itkImageToImageMetric.h +++ b/Modules/Registration/Common/include/itkImageToImageMetric.h @@ -215,7 +215,7 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetric : public SingleValuedCostFunction /** Set/Get gradient computation. */ itkSetMacro(ComputeGradient, bool); itkGetConstReferenceMacro(ComputeGradient, bool); - itkBooleanMacro(ComputeGradient); + itkBooleanMacro(ComputeGradient) /** Computes the gradient image and assigns it to m_GradientImage */ virtual void @@ -338,7 +338,7 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetric : public SingleValuedCostFunction * preserve backward compatibility with previous versions of ITK. */ itkSetMacro(UseCachingOfBSplineWeights, bool); itkGetConstReferenceMacro(UseCachingOfBSplineWeights, bool); - itkBooleanMacro(UseCachingOfBSplineWeights); + itkBooleanMacro(UseCachingOfBSplineWeights) using MultiThreaderType = MultiThreaderBase; /** Get the Threader. */ diff --git a/Modules/Registration/Common/include/itkMatchCardinalityImageToImageMetric.h b/Modules/Registration/Common/include/itkMatchCardinalityImageToImageMetric.h index 12a52c711c8a..a68d81e4d7f9 100644 --- a/Modules/Registration/Common/include/itkMatchCardinalityImageToImageMetric.h +++ b/Modules/Registration/Common/include/itkMatchCardinalityImageToImageMetric.h @@ -121,7 +121,7 @@ class ITK_TEMPLATE_EXPORT MatchCardinalityImageToImageMetric : public ImageToIma * or mismatches. The default is to measure matches * (MeasureMatchesOn). */ itkSetMacro(MeasureMatches, bool); - itkBooleanMacro(MeasureMatches); + itkBooleanMacro(MeasureMatches) itkGetConstMacro(MeasureMatches, bool); /** Return the multithreader used by this class. */ diff --git a/Modules/Registration/Common/include/itkMattesMutualInformationImageToImageMetric.h b/Modules/Registration/Common/include/itkMattesMutualInformationImageToImageMetric.h index 24b219fd3ad9..2149889641bb 100644 --- a/Modules/Registration/Common/include/itkMattesMutualInformationImageToImageMetric.h +++ b/Modules/Registration/Common/include/itkMattesMutualInformationImageToImageMetric.h @@ -218,7 +218,7 @@ class ITK_TEMPLATE_EXPORT MattesMutualInformationImageToImageMetric * number of parameters, such as, BSplineTransforms. */ itkSetMacro(UseExplicitPDFDerivatives, bool); itkGetConstReferenceMacro(UseExplicitPDFDerivatives, bool); - itkBooleanMacro(UseExplicitPDFDerivatives); + itkBooleanMacro(UseExplicitPDFDerivatives) /** The marginal PDFs are stored as std::vector. */ using PDFValueType = double; // NOTE: floating point precision is not as stable. Double precision proves faster and diff --git a/Modules/Registration/Common/include/itkMultiResolutionPyramidImageFilter.h b/Modules/Registration/Common/include/itkMultiResolutionPyramidImageFilter.h index 7661d11045e6..4573c20c6fa7 100644 --- a/Modules/Registration/Common/include/itkMultiResolutionPyramidImageFilter.h +++ b/Modules/Registration/Common/include/itkMultiResolutionPyramidImageFilter.h @@ -211,7 +211,7 @@ class ITK_TEMPLATE_EXPORT MultiResolutionPyramidImageFilter : public ImageToImag itkSetMacro(UseShrinkImageFilter, bool); itkGetConstMacro(UseShrinkImageFilter, bool); - itkBooleanMacro(UseShrinkImageFilter); + itkBooleanMacro(UseShrinkImageFilter) #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking diff --git a/Modules/Registration/Common/include/itkNormalizedCorrelationImageToImageMetric.h b/Modules/Registration/Common/include/itkNormalizedCorrelationImageToImageMetric.h index 13979876fe33..91db2db2c36d 100644 --- a/Modules/Registration/Common/include/itkNormalizedCorrelationImageToImageMetric.h +++ b/Modules/Registration/Common/include/itkNormalizedCorrelationImageToImageMetric.h @@ -97,7 +97,7 @@ class ITK_TEMPLATE_EXPORT NormalizedCorrelationImageToImageMetric : public Image * Default value is false. */ itkSetMacro(SubtractMean, bool); itkGetConstReferenceMacro(SubtractMean, bool); - itkBooleanMacro(SubtractMean); + itkBooleanMacro(SubtractMean) protected: NormalizedCorrelationImageToImageMetric(); diff --git a/Modules/Registration/Common/include/itkNormalizedCorrelationPointSetToImageMetric.h b/Modules/Registration/Common/include/itkNormalizedCorrelationPointSetToImageMetric.h index 1af7a34767d6..3fcc80c97e98 100644 --- a/Modules/Registration/Common/include/itkNormalizedCorrelationPointSetToImageMetric.h +++ b/Modules/Registration/Common/include/itkNormalizedCorrelationPointSetToImageMetric.h @@ -99,7 +99,7 @@ class ITK_TEMPLATE_EXPORT NormalizedCorrelationPointSetToImageMetric * Default value is false. */ itkSetMacro(SubtractMean, bool); itkGetConstReferenceMacro(SubtractMean, bool); - itkBooleanMacro(SubtractMean); + itkBooleanMacro(SubtractMean) protected: NormalizedCorrelationPointSetToImageMetric(); diff --git a/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4.h b/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4.h index bd97c52e3125..2a78f3acd167 100644 --- a/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4.h +++ b/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4.h @@ -454,13 +454,13 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetricv4 /** Set/Get flag to use a domain sampling point set */ itkSetMacro(UseSampledPointSet, bool); itkGetConstReferenceMacro(UseSampledPointSet, bool); - itkBooleanMacro(UseSampledPointSet); + itkBooleanMacro(UseSampledPointSet) /** Set/Get flag to indicate of the VirtualSampledPointSet is set * over the FixedSampledPointSet*/ itkSetMacro(UseVirtualSampledPointSet, bool); itkGetConstReferenceMacro(UseVirtualSampledPointSet, bool); - itkBooleanMacro(UseVirtualSampledPointSet); + itkBooleanMacro(UseVirtualSampledPointSet) #if !defined(ITK_LEGACY_REMOVE) /** UseFixedSampledPointSet is deprecated and has been replaced @@ -488,12 +488,12 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetricv4 * for fixed image. */ itkSetMacro(UseFixedImageGradientFilter, bool); itkGetConstReferenceMacro(UseFixedImageGradientFilter, bool); - itkBooleanMacro(UseFixedImageGradientFilter); + itkBooleanMacro(UseFixedImageGradientFilter) /** Set/Get gradient computation via an image filter. */ itkSetMacro(UseMovingImageGradientFilter, bool); itkGetConstReferenceMacro(UseMovingImageGradientFilter, bool); - itkBooleanMacro(UseMovingImageGradientFilter); + itkBooleanMacro(UseMovingImageGradientFilter) /** Get number of work units to used in the most recent * evaluation. Only valid after GetValueAndDerivative() or @@ -571,7 +571,7 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetricv4 * of this truncation are highly dependent on the derivative magnitudes. */ itkSetMacro(UseFloatingPointCorrection, bool); itkGetConstReferenceMacro(UseFloatingPointCorrection, bool); - itkBooleanMacro(UseFloatingPointCorrection); + itkBooleanMacro(UseFloatingPointCorrection) /** Set/Get the floating point resolution used optionally by the derivatives. * If this is set, for example to 1e5, then the derivative will have precision up to 5 diff --git a/Modules/Registration/Metricsv4/include/itkJensenHavrdaCharvatTsallisPointSetToPointSetMetricv4.h b/Modules/Registration/Metricsv4/include/itkJensenHavrdaCharvatTsallisPointSetToPointSetMetricv4.h index 4c8db002c8f3..e5f3d24ebf80 100644 --- a/Modules/Registration/Metricsv4/include/itkJensenHavrdaCharvatTsallisPointSetToPointSetMetricv4.h +++ b/Modules/Registration/Metricsv4/include/itkJensenHavrdaCharvatTsallisPointSetToPointSetMetricv4.h @@ -176,7 +176,7 @@ class ITK_TEMPLATE_EXPORT JensenHavrdaCharvatTsallisPointSetToPointSetMetricv4 * Get/set whether or not anisotropic covariances are determined for each * Gaussian. Default = false. */ - itkBooleanMacro(UseAnisotropicCovariances); + itkBooleanMacro(UseAnisotropicCovariances) /** * Set the size of the covariance neighborhood used to construct the diff --git a/Modules/Registration/Metricsv4/include/itkManifoldParzenWindowsPointSetFunction.h b/Modules/Registration/Metricsv4/include/itkManifoldParzenWindowsPointSetFunction.h index 9fd2e3c8234a..7393ab9852aa 100644 --- a/Modules/Registration/Metricsv4/include/itkManifoldParzenWindowsPointSetFunction.h +++ b/Modules/Registration/Metricsv4/include/itkManifoldParzenWindowsPointSetFunction.h @@ -141,7 +141,7 @@ class ITK_TEMPLATE_EXPORT ManifoldParzenWindowsPointSetFunction : public PointSe * Normalize covariance by the sum of the weights of the nearest neighbors. * Default = true. */ - itkBooleanMacro(Normalize); + itkBooleanMacro(Normalize) /** * Construct covariances using the local neighborhood point set structure. @@ -162,7 +162,7 @@ class ITK_TEMPLATE_EXPORT ManifoldParzenWindowsPointSetFunction : public PointSe * Otherwise, the Gaussian for each point is characterized by the value * of m_RegularizationSigma. Default = true. */ - itkBooleanMacro(UseAnisotropicCovariances); + itkBooleanMacro(UseAnisotropicCovariances) /** Set the input point set */ void diff --git a/Modules/Registration/Metricsv4/include/itkPointSetToPointSetMetricWithIndexv4.h b/Modules/Registration/Metricsv4/include/itkPointSetToPointSetMetricWithIndexv4.h index 794801e9855a..544f4c9184de 100644 --- a/Modules/Registration/Metricsv4/include/itkPointSetToPointSetMetricWithIndexv4.h +++ b/Modules/Registration/Metricsv4/include/itkPointSetToPointSetMetricWithIndexv4.h @@ -305,14 +305,14 @@ class ITK_TEMPLATE_EXPORT PointSetToPointSetMetricWithIndexv4 */ itkSetMacro(StoreDerivativeAsSparseFieldForLocalSupportTransforms, bool); itkGetConstMacro(StoreDerivativeAsSparseFieldForLocalSupportTransforms, bool); - itkBooleanMacro(StoreDerivativeAsSparseFieldForLocalSupportTransforms); + itkBooleanMacro(StoreDerivativeAsSparseFieldForLocalSupportTransforms) /** * */ itkSetMacro(CalculateValueAndDerivativeInTangentSpace, bool); itkGetConstMacro(CalculateValueAndDerivativeInTangentSpace, bool); - itkBooleanMacro(CalculateValueAndDerivativeInTangentSpace); + itkBooleanMacro(CalculateValueAndDerivativeInTangentSpace) protected: PointSetToPointSetMetricWithIndexv4(); diff --git a/Modules/Registration/PDEDeformable/include/itkDemonsRegistrationFilter.h b/Modules/Registration/PDEDeformable/include/itkDemonsRegistrationFilter.h index bcd742d53ee9..4601591fbbcd 100644 --- a/Modules/Registration/PDEDeformable/include/itkDemonsRegistrationFilter.h +++ b/Modules/Registration/PDEDeformable/include/itkDemonsRegistrationFilter.h @@ -112,7 +112,7 @@ class ITK_TEMPLATE_EXPORT DemonsRegistrationFilter * for computing the displacement field updates. */ itkSetMacro(UseMovingImageGradient, bool); itkGetConstMacro(UseMovingImageGradient, bool); - itkBooleanMacro(UseMovingImageGradient); + itkBooleanMacro(UseMovingImageGradient) /** Set/Get the threshold below which the absolute difference of * intensity yields a match. When the intensities match between a diff --git a/Modules/Registration/PDEDeformable/include/itkDiffeomorphicDemonsRegistrationFilter.h b/Modules/Registration/PDEDeformable/include/itkDiffeomorphicDemonsRegistrationFilter.h index f70d9436f0eb..f90cdfb4e6b3 100644 --- a/Modules/Registration/PDEDeformable/include/itkDiffeomorphicDemonsRegistrationFilter.h +++ b/Modules/Registration/PDEDeformable/include/itkDiffeomorphicDemonsRegistrationFilter.h @@ -139,7 +139,7 @@ class ITK_TEMPLATE_EXPORT DiffeomorphicDemonsRegistrationFilter * s <- s o (Id + u) instead of s <- s o exp(u) */ itkSetMacro(UseFirstOrderExp, bool); itkGetConstMacro(UseFirstOrderExp, bool); - itkBooleanMacro(UseFirstOrderExp); + itkBooleanMacro(UseFirstOrderExp) /** Set/Get the threshold below which the absolute difference of * intensity yields a match. When the intensities match between a diff --git a/Modules/Registration/PDEDeformable/include/itkPDEDeformableRegistrationFilter.h b/Modules/Registration/PDEDeformable/include/itkPDEDeformableRegistrationFilter.h index 759d6ee4ed35..afe6b2ce7613 100644 --- a/Modules/Registration/PDEDeformable/include/itkPDEDeformableRegistrationFilter.h +++ b/Modules/Registration/PDEDeformable/include/itkPDEDeformableRegistrationFilter.h @@ -155,7 +155,7 @@ class ITK_TEMPLATE_EXPORT PDEDeformableRegistrationFilter * deviations are specified with SetStandardDeviations() */ itkSetMacro(SmoothDisplacementField, bool); itkGetConstMacro(SmoothDisplacementField, bool); - itkBooleanMacro(SmoothDisplacementField); + itkBooleanMacro(SmoothDisplacementField) using StandardDeviationsType = FixedArray; @@ -177,7 +177,7 @@ class ITK_TEMPLATE_EXPORT PDEDeformableRegistrationFilter * deviations are specified with SetUpdateFieldStandardDeviations() */ itkSetMacro(SmoothUpdateField, bool); itkGetConstMacro(SmoothUpdateField, bool); - itkBooleanMacro(SmoothUpdateField); + itkBooleanMacro(SmoothUpdateField) /** Set the Gaussian smoothing standard deviations for the update * field. The values are set with respect to pixel coordinates. */ diff --git a/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.h b/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.h index 3b96d945b997..a28de2912607 100644 --- a/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.h +++ b/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.h @@ -431,7 +431,7 @@ class ITK_TEMPLATE_EXPORT ImageRegistrationMethodv4 : public ProcessObject */ itkSetMacro(SmoothingSigmasAreSpecifiedInPhysicalUnits, bool); itkGetConstMacro(SmoothingSigmasAreSpecifiedInPhysicalUnits, bool); - itkBooleanMacro(SmoothingSigmasAreSpecifiedInPhysicalUnits); + itkBooleanMacro(SmoothingSigmasAreSpecifiedInPhysicalUnits) /** Make a DataObject of the correct type to be used as the specified output. */ using DataObjectPointerArraySizeType = ProcessObject::DataObjectPointerArraySizeType; @@ -480,14 +480,14 @@ class ITK_TEMPLATE_EXPORT ImageRegistrationMethodv4 : public ProcessObject */ itkSetMacro(InPlace, bool); itkGetConstMacro(InPlace, bool); - itkBooleanMacro(InPlace); + itkBooleanMacro(InPlace) /** * Initialize the current linear transform to be optimized with the center of the * previous transform in the queue. This provides a much better initialization than * the default origin. */ - itkBooleanMacro(InitializeCenterOfLinearOutputTransform); + itkBooleanMacro(InitializeCenterOfLinearOutputTransform) itkSetMacro(InitializeCenterOfLinearOutputTransform, bool); itkGetConstMacro(InitializeCenterOfLinearOutputTransform, bool); diff --git a/Modules/Segmentation/ConnectedComponents/include/itkConnectedComponentImageFilter.h b/Modules/Segmentation/ConnectedComponents/include/itkConnectedComponentImageFilter.h index fa64ab492168..c64b56103bc2 100644 --- a/Modules/Segmentation/ConnectedComponents/include/itkConnectedComponentImageFilter.h +++ b/Modules/Segmentation/ConnectedComponents/include/itkConnectedComponentImageFilter.h @@ -131,7 +131,7 @@ class ITK_TEMPLATE_EXPORT ConnectedComponentImageFilter */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) /** Type used as identifier of the different component labels. */ using LabelType = IdentifierType; diff --git a/Modules/Segmentation/ConnectedComponents/include/itkRelabelComponentImageFilter.h b/Modules/Segmentation/ConnectedComponents/include/itkRelabelComponentImageFilter.h index ac46a183f768..69eabd7bc840 100644 --- a/Modules/Segmentation/ConnectedComponents/include/itkRelabelComponentImageFilter.h +++ b/Modules/Segmentation/ConnectedComponents/include/itkRelabelComponentImageFilter.h @@ -175,7 +175,7 @@ class ITK_TEMPLATE_EXPORT RelabelComponentImageFilter : public InPlaceImageFilte * If false, initial order of labels is kept. */ itkSetMacro(SortByObjectSize, bool); itkGetConstMacro(SortByObjectSize, bool); - itkBooleanMacro(SortByObjectSize); + itkBooleanMacro(SortByObjectSize) /** Get the size of each object in pixels. This information is only * valid after the filter has executed. Size of the background is diff --git a/Modules/Segmentation/LevelSets/include/itkCollidingFrontsImageFilter.h b/Modules/Segmentation/LevelSets/include/itkCollidingFrontsImageFilter.h index 50a05268aff5..b6b48f2e7d7f 100644 --- a/Modules/Segmentation/LevelSets/include/itkCollidingFrontsImageFilter.h +++ b/Modules/Segmentation/LevelSets/include/itkCollidingFrontsImageFilter.h @@ -145,11 +145,11 @@ class ITK_TEMPLATE_EXPORT CollidingFrontsImageFilter : public ImageToImageFilter itkSetMacro(ApplyConnectivity, bool); itkGetConstMacro(ApplyConnectivity, bool); - itkBooleanMacro(ApplyConnectivity); + itkBooleanMacro(ApplyConnectivity) itkSetMacro(StopOnTargets, bool); itkGetConstMacro(StopOnTargets, bool); - itkBooleanMacro(StopOnTargets); + itkBooleanMacro(StopOnTargets) #ifdef ITK_USE_CONCEPT_CHECKING // Begin concept checking diff --git a/Modules/Segmentation/LevelSets/include/itkLevelSetNeighborhoodExtractor.h b/Modules/Segmentation/LevelSets/include/itkLevelSetNeighborhoodExtractor.h index 6577c8f51a99..6a88353d4eb0 100644 --- a/Modules/Segmentation/LevelSets/include/itkLevelSetNeighborhoodExtractor.h +++ b/Modules/Segmentation/LevelSets/include/itkLevelSetNeighborhoodExtractor.h @@ -108,7 +108,7 @@ class ITK_TEMPLATE_EXPORT LevelSetNeighborhoodExtractor : public LightProcessObj /** Get the narrowbanding flag. */ itkGetConstMacro(NarrowBanding, bool); - itkBooleanMacro(NarrowBanding); + itkBooleanMacro(NarrowBanding) /** Set/Get the input narrowband. A narrowband is represented as * a VectorContainer of LevelSetNodes. */ diff --git a/Modules/Segmentation/LevelSets/include/itkNarrowBandLevelSetImageFilter.h b/Modules/Segmentation/LevelSets/include/itkNarrowBandLevelSetImageFilter.h index 9eb75d6d344c..7ae5bea38c83 100644 --- a/Modules/Segmentation/LevelSets/include/itkNarrowBandLevelSetImageFilter.h +++ b/Modules/Segmentation/LevelSets/include/itkNarrowBandLevelSetImageFilter.h @@ -269,7 +269,7 @@ class ITK_TEMPLATE_EXPORT NarrowBandLevelSetImageFilter : public NarrowBandImage * set. */ itkSetMacro(ReverseExpansionDirection, bool); itkGetConstMacro(ReverseExpansionDirection, bool); - itkBooleanMacro(ReverseExpansionDirection); + itkBooleanMacro(ReverseExpansionDirection) /** Combined scaling of the propagation and advection speed terms. You should use either this -or- Get/SetPropagationScaling and diff --git a/Modules/Segmentation/LevelSets/include/itkReinitializeLevelSetImageFilter.h b/Modules/Segmentation/LevelSets/include/itkReinitializeLevelSetImageFilter.h index 6994009733c8..f5aac0806403 100644 --- a/Modules/Segmentation/LevelSets/include/itkReinitializeLevelSetImageFilter.h +++ b/Modules/Segmentation/LevelSets/include/itkReinitializeLevelSetImageFilter.h @@ -91,7 +91,7 @@ class ITK_TEMPLATE_EXPORT ReinitializeLevelSetImageFilter : public ImageToImageF * off. */ itkSetMacro(NarrowBanding, bool); itkGetConstMacro(NarrowBanding, bool); - itkBooleanMacro(NarrowBanding); + itkBooleanMacro(NarrowBanding) /** Set/Get the input narrow bandwidth. The default value is 12. */ itkSetClampMacro(InputNarrowBandwidth, double, 0.0, NumericTraits::max()); diff --git a/Modules/Segmentation/LevelSets/include/itkSegmentationLevelSetImageFilter.h b/Modules/Segmentation/LevelSets/include/itkSegmentationLevelSetImageFilter.h index 48c19c2dac9c..894fb4241eca 100644 --- a/Modules/Segmentation/LevelSets/include/itkSegmentationLevelSetImageFilter.h +++ b/Modules/Segmentation/LevelSets/include/itkSegmentationLevelSetImageFilter.h @@ -316,7 +316,7 @@ class ITK_TEMPLATE_EXPORT SegmentationLevelSetImageFilter * set. */ itkSetMacro(ReverseExpansionDirection, bool); itkGetConstMacro(ReverseExpansionDirection, bool); - itkBooleanMacro(ReverseExpansionDirection); + itkBooleanMacro(ReverseExpansionDirection) /** Turn On/Off automatic generation of Speed and Advection terms when Update is called. If set to Off, the Speed and Advection images must be set @@ -325,7 +325,7 @@ class ITK_TEMPLATE_EXPORT SegmentationLevelSetImageFilter to updating the filter. */ itkSetMacro(AutoGenerateSpeedAdvection, bool); itkGetConstMacro(AutoGenerateSpeedAdvection, bool); - itkBooleanMacro(AutoGenerateSpeedAdvection); + itkBooleanMacro(AutoGenerateSpeedAdvection) /** Combined scaling of the propagation and advection speed terms. You should use either this -or- Get/SetPropagationScaling and diff --git a/Modules/Segmentation/LevelSets/include/itkSparseFieldFourthOrderLevelSetImageFilter.h b/Modules/Segmentation/LevelSets/include/itkSparseFieldFourthOrderLevelSetImageFilter.h index ff483ee496ba..16460bdeca96 100644 --- a/Modules/Segmentation/LevelSets/include/itkSparseFieldFourthOrderLevelSetImageFilter.h +++ b/Modules/Segmentation/LevelSets/include/itkSparseFieldFourthOrderLevelSetImageFilter.h @@ -215,7 +215,7 @@ class ITK_TEMPLATE_EXPORT SparseFieldFourthOrderLevelSetImageFilter itkSetMacro(NormalProcessConductance, ValueType); itkSetMacro(NormalProcessUnsharpFlag, bool); itkGetConstReferenceMacro(NormalProcessUnsharpFlag, bool); - itkBooleanMacro(NormalProcessUnsharpFlag); + itkBooleanMacro(NormalProcessUnsharpFlag) itkSetMacro(NormalProcessUnsharpWeight, ValueType); itkGetConstReferenceMacro(NormalProcessUnsharpWeight, ValueType); diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.h index f314d88dad48..a2021aa13f66 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.h @@ -97,7 +97,7 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationCurvatureTerm : public LevelSetEquatio itkSetMacro(UseCurvatureImage, bool); itkGetMacro(UseCurvatureImage, bool); - itkBooleanMacro(UseCurvatureImage); + itkBooleanMacro(UseCurvatureImage) /** Neighborhood radius type */ using DefaultBoundaryConditionType = ZeroFluxNeumannBoundaryCondition; diff --git a/Modules/Segmentation/Voronoi/include/itkVoronoiSegmentationImageFilterBase.h b/Modules/Segmentation/Voronoi/include/itkVoronoiSegmentationImageFilterBase.h index 5a499334ef91..15e3fff3ceab 100644 --- a/Modules/Segmentation/Voronoi/include/itkVoronoiSegmentationImageFilterBase.h +++ b/Modules/Segmentation/Voronoi/include/itkVoronoiSegmentationImageFilterBase.h @@ -141,7 +141,7 @@ class ITK_TEMPLATE_EXPORT VoronoiSegmentationImageFilterBase : public ImageToIma sessions. The setting of OutputBoundary determines the type of output. */ itkSetMacro(InteractiveSegmentation, bool); itkGetConstMacro(InteractiveSegmentation, bool); - itkBooleanMacro(InteractiveSegmentation); + itkBooleanMacro(InteractiveSegmentation) /** Set/Get the mean deviation. */ itkSetMacro(MeanDeviation, double); diff --git a/Modules/Segmentation/Watersheds/include/itkMorphologicalWatershedFromMarkersImageFilter.h b/Modules/Segmentation/Watersheds/include/itkMorphologicalWatershedFromMarkersImageFilter.h index e2c85c1de0b5..75bd459e6c10 100644 --- a/Modules/Segmentation/Watersheds/include/itkMorphologicalWatershedFromMarkersImageFilter.h +++ b/Modules/Segmentation/Watersheds/include/itkMorphologicalWatershedFromMarkersImageFilter.h @@ -150,7 +150,7 @@ class ITK_TEMPLATE_EXPORT MorphologicalWatershedFromMarkersImageFilter */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) /** * Set/Get whether the watershed pixel must be marked or not. Default @@ -159,7 +159,7 @@ class ITK_TEMPLATE_EXPORT MorphologicalWatershedFromMarkersImageFilter */ itkSetMacro(MarkWatershedLine, bool); itkGetConstReferenceMacro(MarkWatershedLine, bool); - itkBooleanMacro(MarkWatershedLine); + itkBooleanMacro(MarkWatershedLine) protected: MorphologicalWatershedFromMarkersImageFilter(); diff --git a/Modules/Segmentation/Watersheds/include/itkMorphologicalWatershedImageFilter.h b/Modules/Segmentation/Watersheds/include/itkMorphologicalWatershedImageFilter.h index 9fae3b2c261f..5af0a6fb9906 100644 --- a/Modules/Segmentation/Watersheds/include/itkMorphologicalWatershedImageFilter.h +++ b/Modules/Segmentation/Watersheds/include/itkMorphologicalWatershedImageFilter.h @@ -93,7 +93,7 @@ class ITK_TEMPLATE_EXPORT MorphologicalWatershedImageFilter : public ImageToImag */ itkSetMacro(FullyConnected, bool); itkGetConstReferenceMacro(FullyConnected, bool); - itkBooleanMacro(FullyConnected); + itkBooleanMacro(FullyConnected) /** * Set/Get whether the watershed pixel must be marked or not. Default @@ -102,7 +102,7 @@ class ITK_TEMPLATE_EXPORT MorphologicalWatershedImageFilter : public ImageToImag */ itkSetMacro(MarkWatershedLine, bool); itkGetConstReferenceMacro(MarkWatershedLine, bool); - itkBooleanMacro(MarkWatershedLine); + itkBooleanMacro(MarkWatershedLine) /** */