diff --git a/Modules/Bridge/VTK/include/itkVTKImageExportBase.h b/Modules/Bridge/VTK/include/itkVTKImageExportBase.h index 84c6274f0c7..d610fb2bfc9 100644 --- a/Modules/Bridge/VTK/include/itkVTKImageExportBase.h +++ b/Modules/Bridge/VTK/include/itkVTKImageExportBase.h @@ -231,7 +231,7 @@ class ITKVTK_EXPORT VTKImageExportBase : public ProcessObject private: /** PipelineMTime from the last call to PipelineModifiedCallback. */ - ModifiedTimeType m_LastPipelineMTime; + ModifiedTimeType m_LastPipelineMTime{}; }; } // end namespace itk diff --git a/Modules/Compatibility/Deprecated/include/itkChildTreeIterator.h b/Modules/Compatibility/Deprecated/include/itkChildTreeIterator.h index 6caeb3ac1ef..68166ac1263 100644 --- a/Modules/Compatibility/Deprecated/include/itkChildTreeIterator.h +++ b/Modules/Compatibility/Deprecated/include/itkChildTreeIterator.h @@ -81,8 +81,8 @@ class ITK_TEMPLATE_EXPORT ChildTreeIterator : public TreeIteratorBase HasNext() const override; private: - mutable ChildIdentifier m_ListPosition; - TreeNodeType * m_ParentNode; + mutable ChildIdentifier m_ListPosition{}; + TreeNodeType * m_ParentNode{}; }; } // end namespace itk diff --git a/Modules/Compatibility/Deprecated/include/itkLevelOrderTreeIterator.h b/Modules/Compatibility/Deprecated/include/itkLevelOrderTreeIterator.h index 28e4bb2fc49..360f5b14c94 100644 --- a/Modules/Compatibility/Deprecated/include/itkLevelOrderTreeIterator.h +++ b/Modules/Compatibility/Deprecated/include/itkLevelOrderTreeIterator.h @@ -106,9 +106,9 @@ class ITK_TEMPLATE_EXPORT LevelOrderTreeIterator : public TreeIteratorBase m_Queue; + int m_StartLevel{}; + int m_EndLevel{}; + mutable std::queue m_Queue{}; }; } // end namespace itk diff --git a/Modules/Compatibility/Deprecated/include/itkMutexLock.h b/Modules/Compatibility/Deprecated/include/itkMutexLock.h index c1981abd9ad..c8c6b1ecfdb 100644 --- a/Modules/Compatibility/Deprecated/include/itkMutexLock.h +++ b/Modules/Compatibility/Deprecated/include/itkMutexLock.h @@ -102,7 +102,7 @@ class ITKDeprecated_EXPORT SimpleMutexLock } protected: - MutexType m_MutexLock; + MutexType m_MutexLock{}; }; /** diff --git a/Modules/Compatibility/Deprecated/include/itkTreeChangeEvent.h b/Modules/Compatibility/Deprecated/include/itkTreeChangeEvent.h index 01dfc10e965..25ebe812078 100644 --- a/Modules/Compatibility/Deprecated/include/itkTreeChangeEvent.h +++ b/Modules/Compatibility/Deprecated/include/itkTreeChangeEvent.h @@ -85,7 +85,7 @@ class ITK_TEMPLATE_EXPORT TreeChangeEvent : public ModifiedEvent {} protected: - const TreeIteratorBase * m_ChangePosition; + const TreeIteratorBase * m_ChangePosition{}; }; /** \class TreeNodeChangeEvent diff --git a/Modules/Compatibility/Deprecated/include/itkTreeIteratorBase.h b/Modules/Compatibility/Deprecated/include/itkTreeIteratorBase.h index 65384dcebdb..4b0fb760b82 100644 --- a/Modules/Compatibility/Deprecated/include/itkTreeIteratorBase.h +++ b/Modules/Compatibility/Deprecated/include/itkTreeIteratorBase.h @@ -274,9 +274,9 @@ class ITK_TEMPLATE_EXPORT TreeIteratorBase TreeIteratorBase(const TTreeType * tree, const TreeNodeType * start); mutable TreeNodeType * m_Position; // Current position of the iterator - mutable TreeNodeType * m_Begin; - const TreeNodeType * m_Root; - TTreeType * m_Tree; + mutable TreeNodeType * m_Begin{}; + const TreeNodeType * m_Root{}; + TTreeType * m_Tree{}; virtual bool HasNext() const = 0; diff --git a/Modules/Core/Common/include/itkCellInterface.h b/Modules/Core/Common/include/itkCellInterface.h index 364825751fb..35bc70cf1a5 100644 --- a/Modules/Core/Common/include/itkCellInterface.h +++ b/Modules/Core/Common/include/itkCellInterface.h @@ -490,7 +490,7 @@ class ITK_TEMPLATE_EXPORT CellInterface protected: /** Store the set of cells using this boundary. */ - UsingCellsContainer m_UsingCells; + UsingCellsContainer m_UsingCells{}; }; /** \class CellTraitsInfo diff --git a/Modules/Core/Common/include/itkConditionalConstIterator.h b/Modules/Core/Common/include/itkConditionalConstIterator.h index 7411b202a55..a94e1a71884 100644 --- a/Modules/Core/Common/include/itkConditionalConstIterator.h +++ b/Modules/Core/Common/include/itkConditionalConstIterator.h @@ -112,10 +112,10 @@ class ITK_TEMPLATE_EXPORT ConditionalConstIterator protected: // made protected so other iterators can access /** Smart pointer to the source image. */ // SmartPointer m_Image; - typename ImageType::ConstWeakPointer m_Image; + typename ImageType::ConstWeakPointer m_Image{}; /** Region type to iterate over. */ - RegionType m_Region; + RegionType m_Region{}; /** Is the iterator at the end of its walk? */ bool m_IsAtEnd{ false }; diff --git a/Modules/Core/Common/include/itkConstNeighborhoodIterator.h b/Modules/Core/Common/include/itkConstNeighborhoodIterator.h index 61059eeaf3e..c41a9a5964b 100644 --- a/Modules/Core/Common/include/itkConstNeighborhoodIterator.h +++ b/Modules/Core/Common/include/itkConstNeighborhoodIterator.h @@ -590,7 +590,7 @@ class ITK_TEMPLATE_EXPORT ConstNeighborhoodIterator const InternalPixelType * m_Begin{ nullptr }; /** The image on which iteration is defined. */ - typename ImageType::ConstWeakPointer m_ConstImage; + typename ImageType::ConstWeakPointer m_ConstImage{}; /** A pointer to one past the last pixel in the iteration region. */ const InternalPixelType * m_End{ nullptr }; @@ -603,7 +603,7 @@ class ITK_TEMPLATE_EXPORT ConstNeighborhoodIterator IndexType m_Loop{ { 0 } }; /** The region over which iteration is defined. */ - RegionType m_Region; + RegionType m_Region{}; /** The internal array of offsets that provide support for regions of * interest. @@ -616,7 +616,7 @@ class ITK_TEMPLATE_EXPORT ConstNeighborhoodIterator * By default this points to m_BoundaryCondition, but * OverrideBoundaryCondition allows a user to point this variable an external * boundary condition. */ - ImageBoundaryConditionPointerType m_BoundaryCondition; + ImageBoundaryConditionPointerType m_BoundaryCondition{}; /** Denotes which of the iterators dimensional sides spill outside * region of interest boundaries. By default `false` for each dimension. */ @@ -631,19 +631,19 @@ class ITK_TEMPLATE_EXPORT ConstNeighborhoodIterator mutable bool m_IsInBoundsValid{ false }; /** Lower threshold of in-bounds loop counter values. */ - IndexType m_InnerBoundsLow; + IndexType m_InnerBoundsLow{}; /** Upper threshold of in-bounds loop counter values. */ - IndexType m_InnerBoundsHigh; + IndexType m_InnerBoundsHigh{}; /** Default boundary condition. */ - TBoundaryCondition m_InternalBoundaryCondition; + TBoundaryCondition m_InternalBoundaryCondition{}; /** Does the specified region need to worry about boundary conditions? */ bool m_NeedToUseBoundaryCondition{ false }; /** Functor type used to access neighborhoods of pixel pointers */ - NeighborhoodAccessorFunctorType m_NeighborhoodAccessorFunctor; + NeighborhoodAccessorFunctorType m_NeighborhoodAccessorFunctor{}; }; template diff --git a/Modules/Core/Common/include/itkConstNeighborhoodIteratorWithOnlyIndex.h b/Modules/Core/Common/include/itkConstNeighborhoodIteratorWithOnlyIndex.h index 20a739f9e24..695a9590b02 100644 --- a/Modules/Core/Common/include/itkConstNeighborhoodIteratorWithOnlyIndex.h +++ b/Modules/Core/Common/include/itkConstNeighborhoodIteratorWithOnlyIndex.h @@ -375,7 +375,7 @@ class ITK_TEMPLATE_EXPORT ConstNeighborhoodIteratorWithOnlyIndex : public Neighb IndexType m_Bound{ { 0 } }; /** The image on which iteration is defined. */ - typename ImageType::ConstPointer m_ConstImage; + typename ImageType::ConstPointer m_ConstImage{}; /** The end index for iteration within the itk::Image region * on which this ConstNeighborhoodIteratorWithOnlyIndex is defined. */ @@ -385,7 +385,7 @@ class ITK_TEMPLATE_EXPORT ConstNeighborhoodIteratorWithOnlyIndex : public Neighb IndexType m_Loop{ { 0 } }; /** The region over which iteration is defined. */ - RegionType m_Region; + RegionType m_Region{}; /** Denotes which of the iterators dimensional sides spill outside * region of interest boundaries. By default `false` for each dimension. */ @@ -400,10 +400,10 @@ class ITK_TEMPLATE_EXPORT ConstNeighborhoodIteratorWithOnlyIndex : public Neighb mutable bool m_IsInBoundsValid{ false }; /** Lower threshold of in-bounds loop counter values. */ - IndexType m_InnerBoundsLow; + IndexType m_InnerBoundsLow{}; /** Upper threshold of in-bounds loop counter values. */ - IndexType m_InnerBoundsHigh; + IndexType m_InnerBoundsHigh{}; /** Does the specified region need to worry about boundary conditions? */ bool m_NeedToUseBoundaryCondition{ false }; diff --git a/Modules/Core/Common/include/itkConstShapedNeighborhoodIterator.h b/Modules/Core/Common/include/itkConstShapedNeighborhoodIterator.h index ee8e57d6acd..e0bf4c02852 100644 --- a/Modules/Core/Common/include/itkConstShapedNeighborhoodIterator.h +++ b/Modules/Core/Common/include/itkConstShapedNeighborhoodIterator.h @@ -421,7 +421,7 @@ class ITK_TEMPLATE_EXPORT ConstShapedNeighborhoodIterator : private Neighborhood bool m_CenterIsActive{ false }; - IndexListType m_ActiveIndexList; + IndexListType m_ActiveIndexList{}; }; } // namespace itk diff --git a/Modules/Core/Common/include/itkConstantBoundaryCondition.h b/Modules/Core/Common/include/itkConstantBoundaryCondition.h index 9f2fc8922f7..8d94ad5fdb8 100644 --- a/Modules/Core/Common/include/itkConstantBoundaryCondition.h +++ b/Modules/Core/Common/include/itkConstantBoundaryCondition.h @@ -157,7 +157,7 @@ class ITK_TEMPLATE_EXPORT ConstantBoundaryCondition : public ImageBoundaryCondit GetPixel(const IndexType & index, const TInputImage * image) const override; private: - OutputPixelType m_Constant; + OutputPixelType m_Constant{}; }; } // end namespace itk diff --git a/Modules/Core/Common/include/itkCorrespondenceDataStructureIterator.h b/Modules/Core/Common/include/itkCorrespondenceDataStructureIterator.h index a8754bca806..eee7c0ea89c 100644 --- a/Modules/Core/Common/include/itkCorrespondenceDataStructureIterator.h +++ b/Modules/Core/Common/include/itkCorrespondenceDataStructureIterator.h @@ -95,19 +95,19 @@ class ITK_TEMPLATE_EXPORT CorrespondenceDataStructureIterator return m_CorrespondingListPointer; } - CorrespondingListIterator m_CorrespondingListIterator; - SecondaryNodeListIterator m_SecondaryListIterator; + CorrespondingListIterator m_CorrespondingListIterator{}; + SecondaryNodeListIterator m_SecondaryListIterator{}; - typename TStructureType::NodeListType::iterator m_NodeListIterator; + typename TStructureType::NodeListType::iterator m_NodeListIterator{}; protected: /** Is the iterator at the end of its walk? */ - bool m_IsAtEnd; - TStructureType * m_Structure; - ItemType * m_CorrespondingNodePointer; - CorrespondingListType * m_CorrespondingListPointer; - SecondaryNodeListType * m_SecondaryListPointer; - NodeListType * m_NodeListPointer; + bool m_IsAtEnd{}; + TStructureType * m_Structure{}; + ItemType * m_CorrespondingNodePointer{}; + CorrespondingListType * m_CorrespondingListPointer{}; + SecondaryNodeListType * m_SecondaryListPointer{}; + NodeListType * m_NodeListPointer{}; }; } // end namespace itk diff --git a/Modules/Core/Common/include/itkDomainThreader.h b/Modules/Core/Common/include/itkDomainThreader.h index b1db2a63d5b..a7d2c7d4793 100644 --- a/Modules/Core/Common/include/itkDomainThreader.h +++ b/Modules/Core/Common/include/itkDomainThreader.h @@ -163,7 +163,7 @@ class ITK_TEMPLATE_EXPORT DomainThreader : public Object static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreaderCallback(void * arg); - AssociateType * m_Associate; + AssociateType * m_Associate{}; private: void @@ -180,10 +180,10 @@ class ITK_TEMPLATE_EXPORT DomainThreader : public Object * well into that number. * This value is determined at the beginning of \c Execute(). */ ThreadIdType m_NumberOfWorkUnitsUsed{ 0 }; - ThreadIdType m_NumberOfWorkUnits; - typename DomainPartitionerType::Pointer m_DomainPartitioner; - DomainType m_CompleteDomain; - MultiThreaderBase::Pointer m_MultiThreader; + ThreadIdType m_NumberOfWorkUnits{}; + typename DomainPartitionerType::Pointer m_DomainPartitioner{}; + DomainType m_CompleteDomain{}; + MultiThreaderBase::Pointer m_MultiThreader{}; }; } // namespace itk diff --git a/Modules/Core/Common/include/itkExceptionObject.h b/Modules/Core/Common/include/itkExceptionObject.h index 29399773812..2802c56a040 100644 --- a/Modules/Core/Common/include/itkExceptionObject.h +++ b/Modules/Core/Common/include/itkExceptionObject.h @@ -132,7 +132,7 @@ class ITKCommon_EXPORT ExceptionObject : public std::exception private: class ExceptionData; - std::shared_ptr m_ExceptionData; + std::shared_ptr m_ExceptionData{}; }; /** Generic inserter operator for ExceptionObject and its subclasses. */ diff --git a/Modules/Core/Common/include/itkFloodFilledFunctionConditionalConstIterator.h b/Modules/Core/Common/include/itkFloodFilledFunctionConditionalConstIterator.h index f5d106cc623..13808ace45b 100644 --- a/Modules/Core/Common/include/itkFloodFilledFunctionConditionalConstIterator.h +++ b/Modules/Core/Common/include/itkFloodFilledFunctionConditionalConstIterator.h @@ -239,7 +239,7 @@ class ITK_TEMPLATE_EXPORT FloodFilledFunctionConditionalConstIterator : public C protected: // made protected so other iterators can access /** Smart pointer to the function we're evaluating */ - SmartPointer m_Function; + SmartPointer m_Function{}; /** A temporary image used for storing info about indices * 0 = pixel has not yet been processed @@ -247,32 +247,32 @@ class ITK_TEMPLATE_EXPORT FloodFilledFunctionConditionalConstIterator : public C * 2 = pixel is inside the function, neighbor check incomplete * 3 = pixel is inside the function, neighbor check complete */ using TTempImage = Image; - typename TTempImage::Pointer m_TemporaryPointer; + typename TTempImage::Pointer m_TemporaryPointer{}; /** A list of locations to start the recursive fill */ - SeedsContainerType m_Seeds; + SeedsContainerType m_Seeds{}; /** The origin of the source image */ - typename ImageType::PointType m_ImageOrigin; + typename ImageType::PointType m_ImageOrigin{}; /** The spacing of the source image */ - typename ImageType::SpacingType m_ImageSpacing; + typename ImageType::SpacingType m_ImageSpacing{}; /** Region of the source image */ - RegionType m_ImageRegion; + RegionType m_ImageRegion{}; /** Stack used to hold the path of the iterator through the image */ - std::queue m_IndexStack; + std::queue m_IndexStack{}; /** Location vector used in the flood algorithm */ - FunctionInputType m_LocationVector; + FunctionInputType m_LocationVector{}; /** Indicates whether or not we've found a neighbor that needs to be * checked. */ - bool m_FoundUncheckedNeighbor; + bool m_FoundUncheckedNeighbor{}; /** Indicates whether or not an index is valid (inside an image)/ */ - bool m_IsValidIndex; + bool m_IsValidIndex{}; }; } // end namespace itk diff --git a/Modules/Core/Common/include/itkFloodFilledSpatialFunctionConditionalConstIterator.h b/Modules/Core/Common/include/itkFloodFilledSpatialFunctionConditionalConstIterator.h index d96a042441e..889ed6374e7 100644 --- a/Modules/Core/Common/include/itkFloodFilledSpatialFunctionConditionalConstIterator.h +++ b/Modules/Core/Common/include/itkFloodFilledSpatialFunctionConditionalConstIterator.h @@ -125,7 +125,7 @@ class ITK_TEMPLATE_EXPORT FloodFilledSpatialFunctionConditionalConstIterator * 3) Intersect: if any of the corners of the pixel in physical space are inside the function, * then the pixel is inside the function */ - unsigned char m_InclusionStrategy; + unsigned char m_InclusionStrategy{}; }; } // end namespace itk diff --git a/Modules/Core/Common/include/itkImageConstIterator.h b/Modules/Core/Common/include/itkImageConstIterator.h index a1cce35c934..ad4a273c903 100644 --- a/Modules/Core/Common/include/itkImageConstIterator.h +++ b/Modules/Core/Common/include/itkImageConstIterator.h @@ -377,18 +377,18 @@ class ITK_TEMPLATE_EXPORT ImageConstIterator } protected: // made protected so other iterators can access - typename TImage::ConstWeakPointer m_Image; + typename TImage::ConstWeakPointer m_Image{}; RegionType m_Region; // region to iterate over - OffsetValueType m_Offset; + OffsetValueType m_Offset{}; OffsetValueType m_BeginOffset; // offset to first pixel in region OffsetValueType m_EndOffset; // offset to one pixel past last pixel in region - const InternalPixelType * m_Buffer; + const InternalPixelType * m_Buffer{}; - AccessorType m_PixelAccessor; - AccessorFunctorType m_PixelAccessorFunctor; + AccessorType m_PixelAccessor{}; + AccessorFunctorType m_PixelAccessorFunctor{}; }; } // end namespace itk diff --git a/Modules/Core/Common/include/itkImageKernelOperator.h b/Modules/Core/Common/include/itkImageKernelOperator.h index 6946cce142f..ffc87b371dd 100644 --- a/Modules/Core/Common/include/itkImageKernelOperator.h +++ b/Modules/Core/Common/include/itkImageKernelOperator.h @@ -87,7 +87,7 @@ class ITK_TEMPLATE_EXPORT ImageKernelOperator : public NeighborhoodOperator m_ReferenceCount; + mutable std::atomic m_ReferenceCount{}; }; /** diff --git a/Modules/Core/Common/include/itkLineConstIterator.h b/Modules/Core/Common/include/itkLineConstIterator.h index c5b53cdb3a9..fe3cf1a7335 100644 --- a/Modules/Core/Common/include/itkLineConstIterator.h +++ b/Modules/Core/Common/include/itkLineConstIterator.h @@ -154,41 +154,41 @@ class ITK_TEMPLATE_EXPORT LineConstIterator protected: // made protected so other iterators can access /** Smart pointer to the source image. */ - typename ImageType::ConstWeakPointer m_Image; + typename ImageType::ConstWeakPointer m_Image{}; /** Region type to iterate over. */ - RegionType m_Region; + RegionType m_Region{}; /** Is the iterator at the end of its walk? */ - bool m_IsAtEnd; + bool m_IsAtEnd{}; /** Start, end and current ND index position in the image of the line */ - IndexType m_CurrentImageIndex; - IndexType m_StartIndex; - IndexType m_LastIndex; + IndexType m_CurrentImageIndex{}; + IndexType m_StartIndex{}; + IndexType m_LastIndex{}; IndexType m_EndIndex; // one past the end of the line in the m_MainDirection /** Variables that drive the Bresenham-Algorithm */ // The dimension with the largest difference between start and end - unsigned int m_MainDirection; + unsigned int m_MainDirection{}; // Accumulated error for the other dimensions - IndexType m_AccumulateError; + IndexType m_AccumulateError{}; // Increment for the error for each step. Two times the difference between // start and end - IndexType m_IncrementError; + IndexType m_IncrementError{}; // If enough is accumulated for a dimension, the index has to be // incremented. Will be the number of pixels in the line - IndexType m_MaximalError; + IndexType m_MaximalError{}; // Direction of increment. -1 or 1 - IndexType m_OverflowIncrement; + IndexType m_OverflowIncrement{}; // After an overflow, the accumulated error is reduced again. Will be // two times the number of pixels in the line - IndexType m_ReduceErrorAfterIncrement; + IndexType m_ReduceErrorAfterIncrement{}; }; } // end namespace itk diff --git a/Modules/Core/Common/include/itkLoggerBase.h b/Modules/Core/Common/include/itkLoggerBase.h index 03527dc74f4..348b134e45b 100644 --- a/Modules/Core/Common/include/itkLoggerBase.h +++ b/Modules/Core/Common/include/itkLoggerBase.h @@ -234,20 +234,20 @@ class ITKCommon_EXPORT LoggerBase : public Object PrintSelf(std::ostream & os, Indent indent) const override; protected: - PriorityLevelEnum m_PriorityLevel; + PriorityLevelEnum m_PriorityLevel{}; - PriorityLevelEnum m_LevelForFlushing; + PriorityLevelEnum m_LevelForFlushing{}; - MultipleLogOutput::Pointer m_Output; + MultipleLogOutput::Pointer m_Output{}; - RealTimeClock::Pointer m_Clock; + RealTimeClock::Pointer m_Clock{}; - TimeStampFormatEnum m_TimeStampFormat; + TimeStampFormatEnum m_TimeStampFormat{}; - std::string m_HumanReadableFormat; + std::string m_HumanReadableFormat{}; private: - std::string m_Name; + std::string m_Name{}; }; // class LoggerBase } // namespace itk diff --git a/Modules/Core/Common/include/itkMemoryProbe.h b/Modules/Core/Common/include/itkMemoryProbe.h index 71ec6e6faf5..8a4b0d7eee0 100644 --- a/Modules/Core/Common/include/itkMemoryProbe.h +++ b/Modules/Core/Common/include/itkMemoryProbe.h @@ -53,7 +53,7 @@ class ITKCommon_EXPORT MemoryProbe : public ResourceProbe m_Seed; + std::atomic m_Seed{}; private: /** Only used to synchronize the global variable across static libraries.*/ @@ -324,7 +324,7 @@ class ITKCommon_EXPORT MersenneTwisterRandomVariateGenerator : public RandomVari CreateInstance(); // Local lock to enable concurrent access to singleton - std::mutex m_InstanceLock; + std::mutex m_InstanceLock{}; // Static/Global Variable need to be thread-safely accessed diff --git a/Modules/Core/Common/include/itkMetaDataDictionary.h b/Modules/Core/Common/include/itkMetaDataDictionary.h index 0bfcf47a8ff..9aad3891bf9 100644 --- a/Modules/Core/Common/include/itkMetaDataDictionary.h +++ b/Modules/Core/Common/include/itkMetaDataDictionary.h @@ -176,7 +176,7 @@ class ITKCommon_EXPORT MetaDataDictionary bool MakeUnique(); - std::shared_ptr m_Dictionary; + std::shared_ptr m_Dictionary{}; }; inline void diff --git a/Modules/Core/Common/include/itkMultiThreaderBase.h b/Modules/Core/Common/include/itkMultiThreaderBase.h index 9b99f10d925..43b8eae1034 100644 --- a/Modules/Core/Common/include/itkMultiThreaderBase.h +++ b/Modules/Core/Common/include/itkMultiThreaderBase.h @@ -449,7 +449,7 @@ ITK_GCC_PRAGMA_DIAG_POP() ParallelizeImageRegionHelper(void * arg); /** The number of work units to create. */ - ThreadIdType m_NumberOfWorkUnits; + ThreadIdType m_NumberOfWorkUnits{}; /** The number of threads to use. * The m_MaximumNumberOfThreads must always be less than or equal to @@ -459,7 +459,7 @@ ITK_GCC_PRAGMA_DIAG_POP() * to the current m_GlobalMaximumNumberOfThreads in the * SingleMethodExecute() method. */ - ThreadIdType m_MaximumNumberOfThreads; + ThreadIdType m_MaximumNumberOfThreads{}; /** Static function used as a "proxy callback" by multi-threaders. The * threading library will call this routine for each thread, which diff --git a/Modules/Core/Common/include/itkNeighborhood.h b/Modules/Core/Common/include/itkNeighborhood.h index d8d9106bf20..28e1a6c2100 100644 --- a/Modules/Core/Common/include/itkNeighborhood.h +++ b/Modules/Core/Common/include/itkNeighborhood.h @@ -313,14 +313,14 @@ class ITK_TEMPLATE_EXPORT Neighborhood SizeType m_Size{ { 0 } }; /** The buffer in which data is stored. */ - AllocatorType m_DataBuffer; + AllocatorType m_DataBuffer{}; /** A lookup table for keeping track of stride lengths in a neighborhood i.e. the memory offsets between pixels along each dimensional axis */ OffsetValueType m_StrideTable[VDimension]{ 0 }; /** */ - std::vector m_OffsetTable; + std::vector m_OffsetTable{}; }; template diff --git a/Modules/Core/Common/include/itkObject.h b/Modules/Core/Common/include/itkObject.h index 9c7c699ca49..3079257d11d 100644 --- a/Modules/Core/Common/include/itkObject.h +++ b/Modules/Core/Common/include/itkObject.h @@ -270,7 +270,7 @@ class ITKCommon_EXPORT Object : public LightObject mutable bool m_Debug{ false }; /** Keep track of modification time. */ - mutable TimeStamp m_MTime; + mutable TimeStamp m_MTime{}; /** Global object debug flag. */ static bool * m_GlobalWarningDisplay; @@ -291,7 +291,7 @@ class ITKCommon_EXPORT Object : public LightObject */ mutable std::unique_ptr m_MetaDataDictionary{ nullptr }; - std::string m_ObjectName; + std::string m_ObjectName{}; }; } // end namespace itk diff --git a/Modules/Core/Common/include/itkObjectFactoryBase.h b/Modules/Core/Common/include/itkObjectFactoryBase.h index 346b9010c7e..455b081c721 100644 --- a/Modules/Core/Common/include/itkObjectFactoryBase.h +++ b/Modules/Core/Common/include/itkObjectFactoryBase.h @@ -288,9 +288,9 @@ class ITKCommon_EXPORT ObjectFactoryBase : public Object /** Member variables for a factory set by the base class * at load or register time */ - void * m_LibraryHandle; - unsigned long m_LibraryDate; - std::string m_LibraryPath; + void * m_LibraryHandle{}; + unsigned long m_LibraryDate{}; + std::string m_LibraryPath{}; static ObjectFactoryBasePrivate * m_PimplGlobals; }; diff --git a/Modules/Core/Common/include/itkOctreeNode.h b/Modules/Core/Common/include/itkOctreeNode.h index c128e532d6e..0202f1cbb1b 100644 --- a/Modules/Core/Common/include/itkOctreeNode.h +++ b/Modules/Core/Common/include/itkOctreeNode.h @@ -138,8 +138,8 @@ class ITKCommon_EXPORT OctreeNode /** * Each element holds COLOR or pointer to another octree node */ - OctreeNodeBranch * m_Branch; - OctreeBase * m_Parent; + OctreeNodeBranch * m_Branch{}; + OctreeBase * m_Parent{}; }; class ITKCommon_EXPORT OctreeNodeBranch diff --git a/Modules/Core/Common/include/itkOutputWindow.h b/Modules/Core/Common/include/itkOutputWindow.h index d6fb6c04c89..ee8fac78503 100644 --- a/Modules/Core/Common/include/itkOutputWindow.h +++ b/Modules/Core/Common/include/itkOutputWindow.h @@ -134,8 +134,8 @@ class ITKCommon_EXPORT OutputWindow : public Object private: itkGetGlobalDeclarationMacro(OutputWindowGlobals, PimplGlobals); - std::atomic m_PromptUser; - std::mutex m_cerrMutex; + std::atomic m_PromptUser{}; + std::mutex m_cerrMutex{}; static OutputWindowGlobals * m_PimplGlobals; }; } // end namespace itk diff --git a/Modules/Core/Common/include/itkPolyLineCell.h b/Modules/Core/Common/include/itkPolyLineCell.h index 5259a812949..8bf5678ffb2 100644 --- a/Modules/Core/Common/include/itkPolyLineCell.h +++ b/Modules/Core/Common/include/itkPolyLineCell.h @@ -136,7 +136,7 @@ class ITK_TEMPLATE_EXPORT PolyLineCell : public TCellInterface protected: /** For storing the points needed for a line segment. */ - std::vector m_PointIds; + std::vector m_PointIds{}; }; } // end namespace itk diff --git a/Modules/Core/Common/include/itkPolygonCell.h b/Modules/Core/Common/include/itkPolygonCell.h index b8bebac54e1..3f80e552e42 100644 --- a/Modules/Core/Common/include/itkPolygonCell.h +++ b/Modules/Core/Common/include/itkPolygonCell.h @@ -157,8 +157,8 @@ class ITK_TEMPLATE_EXPORT PolygonCell : public TCellInterface ~PolygonCell() override = default; protected: - std::vector m_Edges; - std::vector m_PointIds; + std::vector m_Edges{}; + std::vector m_PointIds{}; }; } // namespace itk diff --git a/Modules/Core/Common/include/itkProcessObject.h b/Modules/Core/Common/include/itkProcessObject.h index 9d5649cbcb0..32bf47c2f29 100644 --- a/Modules/Core/Common/include/itkProcessObject.h +++ b/Modules/Core/Common/include/itkProcessObject.h @@ -931,10 +931,10 @@ class ITKCommon_EXPORT ProcessObject : public Object /** This flag indicates when the pipeline is executing. * It prevents infinite recursion when pipelines have loops. */ - bool m_Updating; + bool m_Updating{}; /** Time when GenerateOutputInformation was last called. */ - TimeStamp m_OutputInformationMTime; + TimeStamp m_OutputInformationMTime{}; private: DataObjectIdentifierType MakeNameFromIndex(DataObjectPointerArraySizeType) const; @@ -946,40 +946,40 @@ class ITKCommon_EXPORT ProcessObject : public Object /** Named input and outputs containers */ - DataObjectPointerMap m_Inputs; - DataObjectPointerMap m_Outputs; + DataObjectPointerMap m_Inputs{}; + DataObjectPointerMap m_Outputs{}; - std::vector m_IndexedInputs; - std::vector m_IndexedOutputs; + std::vector m_IndexedInputs{}; + std::vector m_IndexedOutputs{}; /** An array that caches the ReleaseDataFlags of the inputs */ - std::map m_CachedInputReleaseDataFlags; + std::map m_CachedInputReleaseDataFlags{}; - DataObjectPointerArraySizeType m_NumberOfRequiredInputs; - DataObjectPointerArraySizeType m_NumberOfRequiredOutputs; + DataObjectPointerArraySizeType m_NumberOfRequiredInputs{}; + DataObjectPointerArraySizeType m_NumberOfRequiredOutputs{}; /** STL map to store the named inputs and outputs */ using NameSet = std::set; /** The required inputs */ - NameSet m_RequiredInputNames; + NameSet m_RequiredInputNames{}; /** These support the progress method and aborting filter execution. */ - bool m_AbortGenerateData; - std::atomic m_Progress; + bool m_AbortGenerateData{}; + std::atomic m_Progress{}; - std::thread::id m_UpdateThreadID; + std::thread::id m_UpdateThreadID{}; /** Support processing data in multiple threads. Used by subclasses * (e.g., ImageSource). */ - itk::SmartPointer m_MultiThreader; - ThreadIdType m_NumberOfWorkUnits; + itk::SmartPointer m_MultiThreader{}; + ThreadIdType m_NumberOfWorkUnits{}; bool m_ThreaderUpdateProgress{ true }; /** Memory management ivars */ - bool m_ReleaseDataBeforeUpdateFlag; + bool m_ReleaseDataBeforeUpdateFlag{}; /** Friends of ProcessObject */ friend class DataObject; diff --git a/Modules/Core/Common/include/itkResourceProbe.h b/Modules/Core/Common/include/itkResourceProbe.h index 23333887a92..a0ce1201d57 100644 --- a/Modules/Core/Common/include/itkResourceProbe.h +++ b/Modules/Core/Common/include/itkResourceProbe.h @@ -180,22 +180,22 @@ class ITK_TEMPLATE_EXPORT ResourceProbe itkLegacyMacro(virtual void GetSystemInformation()); private: - ValueType m_StartValue; - ValueType m_TotalValue; - ValueType m_MinimumValue; - ValueType m_MaximumValue; - ValueType m_StandardDeviation; - ValueType m_StandardError; - - CountType m_NumberOfStarts; - CountType m_NumberOfStops; - CountType m_NumberOfIteration; - - std::vector m_ProbeValueList; - - std::string m_NameOfProbe; - std::string m_TypeString; - std::string m_UnitString; + ValueType m_StartValue{}; + ValueType m_TotalValue{}; + ValueType m_MinimumValue{}; + ValueType m_MaximumValue{}; + ValueType m_StandardDeviation{}; + ValueType m_StandardError{}; + + CountType m_NumberOfStarts{}; + CountType m_NumberOfStops{}; + CountType m_NumberOfIteration{}; + + std::vector m_ProbeValueList{}; + + std::string m_NameOfProbe{}; + std::string m_TypeString{}; + std::string m_UnitString{}; static constexpr unsigned int tabwidth = 15; }; diff --git a/Modules/Core/Common/include/itkResourceProbesCollectorBase.h b/Modules/Core/Common/include/itkResourceProbesCollectorBase.h index d418f51e05d..3391f91f1fd 100644 --- a/Modules/Core/Common/include/itkResourceProbesCollectorBase.h +++ b/Modules/Core/Common/include/itkResourceProbesCollectorBase.h @@ -101,7 +101,7 @@ class ITK_TEMPLATE_EXPORT ResourceProbesCollectorBase protected: - MapType m_Probes; + MapType m_Probes{}; }; } // end namespace itk diff --git a/Modules/Core/Common/include/itkShapedFloodFilledFunctionConditionalConstIterator.h b/Modules/Core/Common/include/itkShapedFloodFilledFunctionConditionalConstIterator.h index deb6168ae04..ae0c02197b7 100644 --- a/Modules/Core/Common/include/itkShapedFloodFilledFunctionConditionalConstIterator.h +++ b/Modules/Core/Common/include/itkShapedFloodFilledFunctionConditionalConstIterator.h @@ -249,7 +249,7 @@ class ITK_TEMPLATE_EXPORT ShapedFloodFilledFunctionConditionalConstIterator : pu protected: // made protected so other iterators can access /** Smart pointer to the function we're evaluating */ - SmartPointer m_Function; + SmartPointer m_Function{}; /** A temporary image used for storing info about indices * 0 = pixel has not yet been processed @@ -258,42 +258,42 @@ class ITK_TEMPLATE_EXPORT ShapedFloodFilledFunctionConditionalConstIterator : pu * 3 = pixel is inside the function, neighbor check complete */ using TTempImage = Image; - typename TTempImage::Pointer m_TempPtr; + typename TTempImage::Pointer m_TempPtr{}; /** A list of locations to start the recursive fill */ - SeedsContainerType m_Seeds; + SeedsContainerType m_Seeds{}; /** The origin of the source image */ - typename ImageType::PointType m_ImageOrigin; + typename ImageType::PointType m_ImageOrigin{}; /** The spacing of the source image */ - typename ImageType::SpacingType m_ImageSpacing; + typename ImageType::SpacingType m_ImageSpacing{}; /** The neighborhood iterator */ - NeighborhoodIteratorType m_NeighborhoodIterator; + NeighborhoodIteratorType m_NeighborhoodIterator{}; /** Region of the source image */ - RegionType m_ImageRegion; + RegionType m_ImageRegion{}; /** Stack used to hold the path of the iterator through the image */ - std::queue m_IndexStack; + std::queue m_IndexStack{}; /** Location vector used in the flood algorithm */ - FunctionInputType m_LocationVector; + FunctionInputType m_LocationVector{}; /** Indicates whether or not we've found a neighbor that needs to be * checked. */ - bool m_FoundUncheckedNeighbor; + bool m_FoundUncheckedNeighbor{}; /** Indicates whether or not an index is valid (inside an image)/ */ - bool m_IsValidIndex; + bool m_IsValidIndex{}; /** Defines the connectivity of the neighborhood iterator. * In case of 2D the default connectivity is 4 (6 in 3D) and * when m_FullyConnected is set to true the connectivity is * 8 (26 in 3D). */ - bool m_FullyConnected; + bool m_FullyConnected{}; }; } // end namespace itk diff --git a/Modules/Core/Common/include/itkSimpleFilterWatcher.h b/Modules/Core/Common/include/itkSimpleFilterWatcher.h index bf28d7e95d4..572050a4e21 100644 --- a/Modules/Core/Common/include/itkSimpleFilterWatcher.h +++ b/Modules/Core/Common/include/itkSimpleFilterWatcher.h @@ -285,21 +285,21 @@ class ITKCommon_EXPORT SimpleFilterWatcher } private: - TimeProbe m_TimeProbe; + TimeProbe m_TimeProbe{}; int m_Steps{ 0 }; int m_Iterations{ 0 }; bool m_Quiet{ false }; bool m_TestAbort{ false }; - std::string m_Comment; - itk::ProcessObject::Pointer m_Process; - std::mutex m_ProgressOutput; + std::string m_Comment{}; + itk::ProcessObject::Pointer m_Process{}; + std::mutex m_ProgressOutput{}; using CommandType = SimpleMemberCommand; - CommandType::Pointer m_StartFilterCommand; - CommandType::Pointer m_EndFilterCommand; - CommandType::Pointer m_ProgressFilterCommand; - CommandType::Pointer m_IterationFilterCommand; - CommandType::Pointer m_AbortFilterCommand; + CommandType::Pointer m_StartFilterCommand{}; + CommandType::Pointer m_EndFilterCommand{}; + CommandType::Pointer m_ProgressFilterCommand{}; + CommandType::Pointer m_IterationFilterCommand{}; + CommandType::Pointer m_AbortFilterCommand{}; unsigned long m_StartTag{ 0 }; unsigned long m_EndTag{ 0 }; diff --git a/Modules/Core/Common/include/itkSmapsFileParser.h b/Modules/Core/Common/include/itkSmapsFileParser.h index a1bf639bf55..c44b3d33726 100644 --- a/Modules/Core/Common/include/itkSmapsFileParser.h +++ b/Modules/Core/Common/include/itkSmapsFileParser.h @@ -47,13 +47,13 @@ class ITKCommon_EXPORT MapRecord /** Optional record name */ - std::string m_RecordName; + std::string m_RecordName{}; /** Contains a list of token with the associated memory allocated, tokens * could be typically: Size, Rss, Shared_Clean, Shared_Dirty, Private_Clean, * Private_Dirty, Referenced. */ - std::map m_Tokens; + std::map m_Tokens{}; }; /** \class SmapsRecord @@ -163,7 +163,7 @@ class ITKCommon_EXPORT MapData using MapRecordVectorType = std::vector; /** contains all the segment records */ - MapRecordVectorType m_Records; + MapRecordVectorType m_Records{}; }; /** \class SmapsData_2_6 @@ -191,7 +191,7 @@ class ITKCommon_EXPORT SmapsData_2_6 : public MapData operator>>(std::istream & smapsStream, SmapsData_2_6 & data); protected: - bool m_HeapRecordFound; + bool m_HeapRecordFound{}; }; /** \class VMMapData_10_2 diff --git a/Modules/Core/Common/include/itkTimeProbe.h b/Modules/Core/Common/include/itkTimeProbe.h index c78d245c978..f94c027b005 100644 --- a/Modules/Core/Common/include/itkTimeProbe.h +++ b/Modules/Core/Common/include/itkTimeProbe.h @@ -69,7 +69,7 @@ class ITKCommon_EXPORT TimeProbe : public ResourceProbe; - mutable PointIDListType m_PointIds; + mutable PointIDListType m_PointIds{}; private: void @@ -301,17 +301,17 @@ class ITK_TEMPLATE_EXPORT QuadEdgeMeshPolygonCell : public TCellInterface /** In order to have constant time access at the itk level instead of * doing a search in the Mesh::Cell container. */ - CellIdentifier m_Ident; + CellIdentifier m_Ident{}; /** * Entry point into the edge ring. */ - QuadEdgeType * m_EdgeRingEntry; + QuadEdgeType * m_EdgeRingEntry{}; /** * List of EdgeCells created by the constructor for proper deletion */ - EdgeCellListType m_EdgeCellList; + EdgeCellListType m_EdgeCellList{}; }; } // end namespace itk diff --git a/Modules/Core/SpatialObjects/include/itkContourSpatialObjectPoint.h b/Modules/Core/SpatialObjects/include/itkContourSpatialObjectPoint.h index 5bb7f744c47..19d265597a3 100644 --- a/Modules/Core/SpatialObjects/include/itkContourSpatialObjectPoint.h +++ b/Modules/Core/SpatialObjects/include/itkContourSpatialObjectPoint.h @@ -78,8 +78,8 @@ class ITK_TEMPLATE_EXPORT ContourSpatialObjectPoint : public SpatialObjectPoint< PrintSelf(std::ostream & os, Indent indent) const override; private: - CovariantVectorType m_NormalInObjectSpace; - PointType m_PickedPointInObjectSpace; + CovariantVectorType m_NormalInObjectSpace{}; + PointType m_PickedPointInObjectSpace{}; }; } // end of namespace itk diff --git a/Modules/Core/SpatialObjects/include/itkSpatialObjectPoint.h b/Modules/Core/SpatialObjects/include/itkSpatialObjectPoint.h index 20ba44451fc..fbecd1939e7 100644 --- a/Modules/Core/SpatialObjects/include/itkSpatialObjectPoint.h +++ b/Modules/Core/SpatialObjects/include/itkSpatialObjectPoint.h @@ -232,22 +232,22 @@ class ITK_TEMPLATE_EXPORT SpatialObjectPoint PrintSelf(std::ostream & os, Indent indent) const; /** A unique ID assigned to this SpatialObjectPoint */ - int m_Id; + int m_Id{}; /** Position of the point */ - PointType m_PositionInObjectSpace; + PointType m_PositionInObjectSpace{}; /** Color of the point */ - ColorType m_Color; + ColorType m_Color{}; /** Additional scalar properties of the point */ - std::map m_ScalarDictionary; + std::map m_ScalarDictionary{}; // The SpatialObjectPoint keeps a reference to its owning parent // spatial object for its spatial context. A WeakPointer is used to // avoid a memory leak. - WeakPointer m_SpatialObject; + WeakPointer m_SpatialObject{}; }; } // end of namespace itk diff --git a/Modules/Core/SpatialObjects/include/itkSpatialObjectProperty.h b/Modules/Core/SpatialObjects/include/itkSpatialObjectProperty.h index f02e27fca4b..f406866a6d7 100644 --- a/Modules/Core/SpatialObjects/include/itkSpatialObjectProperty.h +++ b/Modules/Core/SpatialObjects/include/itkSpatialObjectProperty.h @@ -146,12 +146,12 @@ class ITKSpatialObjects_EXPORT SpatialObjectProperty PrintSelf(std::ostream & os, Indent indent) const; private: - ColorType m_Color; + ColorType m_Color{}; - std::string m_Name; + std::string m_Name{}; - std::map m_ScalarDictionary; - std::map m_StringDictionary; + std::map m_ScalarDictionary{}; + std::map m_StringDictionary{}; }; } // namespace itk diff --git a/Modules/Core/Transform/include/itkBSplineBaseTransform.h b/Modules/Core/Transform/include/itkBSplineBaseTransform.h index f8ab8d7a0a6..96013fde17e 100644 --- a/Modules/Core/Transform/include/itkBSplineBaseTransform.h +++ b/Modules/Core/Transform/include/itkBSplineBaseTransform.h @@ -392,13 +392,13 @@ class ITK_TEMPLATE_EXPORT BSplineBaseTransform : public Transform static std::string diff --git a/Modules/Filtering/AnisotropicSmoothing/include/itkAnisotropicDiffusionFunction.h b/Modules/Filtering/AnisotropicSmoothing/include/itkAnisotropicDiffusionFunction.h index db19510a387..80c88a5d50b 100644 --- a/Modules/Filtering/AnisotropicSmoothing/include/itkAnisotropicDiffusionFunction.h +++ b/Modules/Filtering/AnisotropicSmoothing/include/itkAnisotropicDiffusionFunction.h @@ -253,9 +253,9 @@ class ITK_TEMPLATE_EXPORT AnisotropicDiffusionFunction : public FiniteDifference } private: - double m_AverageGradientMagnitudeSquared; - double m_ConductanceParameter; - TimeStepType m_TimeStep; + double m_AverageGradientMagnitudeSquared{}; + double m_ConductanceParameter{}; + TimeStepType m_TimeStep{}; }; } // end namespace itk diff --git a/Modules/Filtering/AnisotropicSmoothing/include/itkAnisotropicDiffusionImageFilter.h b/Modules/Filtering/AnisotropicSmoothing/include/itkAnisotropicDiffusionImageFilter.h index bcd5975afd1..2eb0db07878 100644 --- a/Modules/Filtering/AnisotropicSmoothing/include/itkAnisotropicDiffusionImageFilter.h +++ b/Modules/Filtering/AnisotropicSmoothing/include/itkAnisotropicDiffusionImageFilter.h @@ -149,15 +149,15 @@ class ITK_TEMPLATE_EXPORT AnisotropicDiffusionImageFilter void InitializeIteration() override; - bool m_GradientMagnitudeIsFixed; + bool m_GradientMagnitudeIsFixed{}; private: - double m_ConductanceParameter; - double m_ConductanceScalingParameter; - unsigned int m_ConductanceScalingUpdateInterval; - double m_FixedAverageGradientMagnitude; + double m_ConductanceParameter{}; + double m_ConductanceScalingParameter{}; + unsigned int m_ConductanceScalingUpdateInterval{}; + double m_FixedAverageGradientMagnitude{}; - TimeStepType m_TimeStep; + TimeStepType m_TimeStep{}; }; } // namespace itk diff --git a/Modules/Filtering/BiasCorrection/include/itkCacheableScalarFunction.h b/Modules/Filtering/BiasCorrection/include/itkCacheableScalarFunction.h index 234b7ca0b21..c70f7707297 100644 --- a/Modules/Filtering/BiasCorrection/include/itkCacheableScalarFunction.h +++ b/Modules/Filtering/BiasCorrection/include/itkCacheableScalarFunction.h @@ -141,7 +141,7 @@ class ITKBiasCorrection_EXPORT CacheableScalarFunction SizeValueType m_NumberOfSamples{ 0 }; /** Storage for the precalculated function values. */ - MeasureArrayType m_CacheTable; + MeasureArrayType m_CacheTable{}; /** The upper-bound of domain that is used for filling the cache table. */ double m_CacheUpperBound{ 0.0 }; diff --git a/Modules/Filtering/BiasCorrection/include/itkCompositeValleyFunction.h b/Modules/Filtering/BiasCorrection/include/itkCompositeValleyFunction.h index 480b98c3380..b71cc069c3d 100644 --- a/Modules/Filtering/BiasCorrection/include/itkCompositeValleyFunction.h +++ b/Modules/Filtering/BiasCorrection/include/itkCompositeValleyFunction.h @@ -186,15 +186,15 @@ class ITKBiasCorrection_EXPORT CompositeValleyFunction : public CacheableScalarF private: /** Storage for tissue classes' statistics. */ - std::vector m_Targets; + std::vector m_Targets{}; /** The highest mean value + the sigma of the tissue class * which has the highest mean value * 9. */ - double m_UpperBound; + double m_UpperBound{}; /** The lowest mean value - the sigma of the tissue class * which has the lowest mean value * 9. */ - double m_LowerBound; + double m_LowerBound{}; }; // end of class } // end of namespace itk #endif diff --git a/Modules/Filtering/BinaryMathematicalMorphology/include/itkObjectMorphologyImageFilter.h b/Modules/Filtering/BinaryMathematicalMorphology/include/itkObjectMorphologyImageFilter.h index 997164d019c..403324486f1 100644 --- a/Modules/Filtering/BinaryMathematicalMorphology/include/itkObjectMorphologyImageFilter.h +++ b/Modules/Filtering/BinaryMathematicalMorphology/include/itkObjectMorphologyImageFilter.h @@ -207,19 +207,19 @@ class ITK_TEMPLATE_EXPORT ObjectMorphologyImageFilter : public ImageToImageFilte /** Pointer to a persistent boundary condition object used * for the image iterator. */ - ImageBoundaryConditionPointerType m_BoundaryCondition; + ImageBoundaryConditionPointerType m_BoundaryCondition{}; /** Default boundary condition */ - DefaultBoundaryConditionType m_DefaultBoundaryCondition; + DefaultBoundaryConditionType m_DefaultBoundaryCondition{}; /** Defaults to false */ - bool m_UseBoundaryCondition; + bool m_UseBoundaryCondition{}; /** kernel or structuring element to use. */ - KernelType m_Kernel; + KernelType m_Kernel{}; /** Pixel value that indicates the object be operated upon */ - PixelType m_ObjectValue; + PixelType m_ObjectValue{}; void BeforeThreadedGenerateData() override; diff --git a/Modules/Filtering/Colormap/include/itkColormapFunction.h b/Modules/Filtering/Colormap/include/itkColormapFunction.h index cc694ac0547..e88d69d870e 100644 --- a/Modules/Filtering/Colormap/include/itkColormapFunction.h +++ b/Modules/Filtering/Colormap/include/itkColormapFunction.h @@ -133,11 +133,11 @@ class ColormapFunction : public Object } private: - ScalarType m_MinimumInputValue; - ScalarType m_MaximumInputValue; + ScalarType m_MinimumInputValue{}; + ScalarType m_MaximumInputValue{}; - RGBComponentType m_MinimumRGBComponentValue; - RGBComponentType m_MaximumRGBComponentValue; + RGBComponentType m_MinimumRGBComponentValue{}; + RGBComponentType m_MaximumRGBComponentValue{}; }; } // end namespace Function } // end namespace itk diff --git a/Modules/Filtering/Convolution/include/itkConvolutionImageFilterBase.h b/Modules/Filtering/Convolution/include/itkConvolutionImageFilterBase.h index d4eaaeabc48..35297ae974f 100644 --- a/Modules/Filtering/Convolution/include/itkConvolutionImageFilterBase.h +++ b/Modules/Filtering/Convolution/include/itkConvolutionImageFilterBase.h @@ -156,8 +156,8 @@ class ITK_TEMPLATE_EXPORT ConvolutionImageFilterBase : public ImageToImageFilter private: bool m_Normalize{ false }; - DefaultBoundaryConditionType m_DefaultBoundaryCondition; - BoundaryConditionPointerType m_BoundaryCondition; + DefaultBoundaryConditionType m_DefaultBoundaryCondition{}; + BoundaryConditionPointerType m_BoundaryCondition{}; OutputRegionModeEnum m_OutputRegionMode{ ConvolutionImageFilterBaseEnums::ConvolutionImageFilterOutputRegion::SAME }; }; diff --git a/Modules/Filtering/Deconvolution/include/itkIterativeDeconvolutionImageFilter.h b/Modules/Filtering/Deconvolution/include/itkIterativeDeconvolutionImageFilter.h index 5363b1ee32b..dabf754cd22 100644 --- a/Modules/Filtering/Deconvolution/include/itkIterativeDeconvolutionImageFilter.h +++ b/Modules/Filtering/Deconvolution/include/itkIterativeDeconvolutionImageFilter.h @@ -131,10 +131,10 @@ class ITK_TEMPLATE_EXPORT IterativeDeconvolutionImageFilter GenerateData() override; /** Discrete Fourier transform of the padded kernel. */ - InternalComplexImagePointerType m_TransferFunction; + InternalComplexImagePointerType m_TransferFunction{}; /** Intermediate results. Protected for easy access by subclasses. */ - InternalImagePointerType m_CurrentEstimate; + InternalImagePointerType m_CurrentEstimate{}; using typename Superclass::FFTFilterType; using typename Superclass::IFFTFilterType; @@ -144,17 +144,17 @@ class ITK_TEMPLATE_EXPORT IterativeDeconvolutionImageFilter private: /** Number of iterations to run. */ - unsigned int m_NumberOfIterations; + unsigned int m_NumberOfIterations{}; /** The current iteration. */ - unsigned int m_Iteration; + unsigned int m_Iteration{}; /** Flag indicating whether iteration should be stopped. */ - bool m_StopIteration; + bool m_StopIteration{}; /** Modified times for the input and kernel. */ - ModifiedTimeType m_InputMTime; - ModifiedTimeType m_KernelMTime; + ModifiedTimeType m_InputMTime{}; + ModifiedTimeType m_KernelMTime{}; }; } // end namespace itk diff --git a/Modules/Filtering/Denoising/include/itkPatchBasedDenoisingBaseImageFilter.h b/Modules/Filtering/Denoising/include/itkPatchBasedDenoisingBaseImageFilter.h index 50dd2b51692..10ac85c8127 100644 --- a/Modules/Filtering/Denoising/include/itkPatchBasedDenoisingBaseImageFilter.h +++ b/Modules/Filtering/Denoising/include/itkPatchBasedDenoisingBaseImageFilter.h @@ -405,13 +405,13 @@ class ITK_TEMPLATE_EXPORT PatchBasedDenoisingBaseImageFilter : public ImageToIma // Cache input and output pointer to get rid of thousands of calls // to GetInput and GetOutput. - const InputImageType * m_InputImage; - OutputImageType * m_OutputImage; + const InputImageType * m_InputImage{}; + OutputImageType * m_OutputImage{}; private: /** Parameters that define patch size and patch weights (mask). */ unsigned int m_PatchRadius{ 4 }; - PatchWeightsType m_PatchWeights; + PatchWeightsType m_PatchWeights{}; /** Parameters that define the strategy for kernel-bandwidth estimation. */ bool m_KernelBandwidthEstimation{ false }; diff --git a/Modules/Filtering/FFT/include/itkFFTWGlobalConfiguration.h b/Modules/Filtering/FFT/include/itkFFTWGlobalConfiguration.h index c2979d5390c..a63ae039883 100644 --- a/Modules/Filtering/FFT/include/itkFFTWGlobalConfiguration.h +++ b/Modules/Filtering/FFT/include/itkFFTWGlobalConfiguration.h @@ -97,7 +97,7 @@ class ITKFFT_EXPORT ManualWisdomFilenameGenerator : public WisdomFilenameGenerat GenerateWisdomFilename(const std::string & baseCacheDirectory) const override; private: - std::string m_WisdomFilename; + std::string m_WisdomFilename{}; }; class ITKFFT_EXPORT SimpleWisdomFilenameGenerator : public WisdomFilenameGeneratorBase diff --git a/Modules/Filtering/GPUAnisotropicSmoothing/include/itkGPUAnisotropicDiffusionFunction.h b/Modules/Filtering/GPUAnisotropicSmoothing/include/itkGPUAnisotropicDiffusionFunction.h index 40f420ea707..0de42813ac8 100644 --- a/Modules/Filtering/GPUAnisotropicSmoothing/include/itkGPUAnisotropicDiffusionFunction.h +++ b/Modules/Filtering/GPUAnisotropicSmoothing/include/itkGPUAnisotropicDiffusionFunction.h @@ -152,16 +152,16 @@ class ITK_TEMPLATE_EXPORT GPUAnisotropicDiffusionFunction : public GPUFiniteDiff } // GPU buffer for Computing Average Squared Gradient Magnitude - typename GPUDataManager::Pointer m_AnisotropicDiffusionFunctionGPUBuffer; - typename GPUKernelManager::Pointer m_AnisotropicDiffusionFunctionGPUKernelManager; + typename GPUDataManager::Pointer m_AnisotropicDiffusionFunctionGPUBuffer{}; + typename GPUKernelManager::Pointer m_AnisotropicDiffusionFunctionGPUKernelManager{}; // GPU Kernel Handles - int m_AverageGradientMagnitudeSquaredGPUKernelHandle; + int m_AverageGradientMagnitudeSquaredGPUKernelHandle{}; private: - double m_AverageGradientMagnitudeSquared; - double m_ConductanceParameter; - TimeStepType m_TimeStep; + double m_AverageGradientMagnitudeSquared{}; + double m_ConductanceParameter{}; + TimeStepType m_TimeStep{}; }; } // end namespace itk diff --git a/Modules/Filtering/GPUThresholding/include/itkGPUBinaryThresholdImageFilter.h b/Modules/Filtering/GPUThresholding/include/itkGPUBinaryThresholdImageFilter.h index 50645dc80c7..c7939e37f2d 100644 --- a/Modules/Filtering/GPUThresholding/include/itkGPUBinaryThresholdImageFilter.h +++ b/Modules/Filtering/GPUThresholding/include/itkGPUBinaryThresholdImageFilter.h @@ -77,10 +77,10 @@ class ITK_TEMPLATE_EXPORT GPUBinaryThreshold : public GPUFunctorBase } private: - TInput m_LowerThreshold; - TInput m_UpperThreshold; - TOutput m_InsideValue; - TOutput m_OutsideValue; + TInput m_LowerThreshold{}; + TInput m_UpperThreshold{}; + TOutput m_InsideValue{}; + TOutput m_OutsideValue{}; }; } // end of namespace Functor diff --git a/Modules/Filtering/ImageFilterBase/include/itkRecursiveSeparableImageFilter.h b/Modules/Filtering/ImageFilterBase/include/itkRecursiveSeparableImageFilter.h index d2a6d8a5c01..8a1c0148e0d 100644 --- a/Modules/Filtering/ImageFilterBase/include/itkRecursiveSeparableImageFilter.h +++ b/Modules/Filtering/ImageFilterBase/include/itkRecursiveSeparableImageFilter.h @@ -142,36 +142,36 @@ class ITK_TEMPLATE_EXPORT RecursiveSeparableImageFilter : public InPlaceImageFil protected: /** Causal coefficients that multiply the input data. */ - ScalarRealType m_N0; - ScalarRealType m_N1; - ScalarRealType m_N2; - ScalarRealType m_N3; + ScalarRealType m_N0{}; + ScalarRealType m_N1{}; + ScalarRealType m_N2{}; + ScalarRealType m_N3{}; /** Recursive coefficients that multiply previously computed values * at the output. These are the same for the causal and * anti-causal parts of the filter. */ - ScalarRealType m_D1; - ScalarRealType m_D2; - ScalarRealType m_D3; - ScalarRealType m_D4; + ScalarRealType m_D1{}; + ScalarRealType m_D2{}; + ScalarRealType m_D3{}; + ScalarRealType m_D4{}; /** Anti-causal coefficients that multiply the input data. */ - ScalarRealType m_M1; - ScalarRealType m_M2; - ScalarRealType m_M3; - ScalarRealType m_M4; + ScalarRealType m_M1{}; + ScalarRealType m_M2{}; + ScalarRealType m_M3{}; + ScalarRealType m_M4{}; /** Recursive coefficients to be used at the boundaries to simulate * edge extension boundary conditions. */ - ScalarRealType m_BN1; - ScalarRealType m_BN2; - ScalarRealType m_BN3; - ScalarRealType m_BN4; - - ScalarRealType m_BM1; - ScalarRealType m_BM2; - ScalarRealType m_BM3; - ScalarRealType m_BM4; + ScalarRealType m_BN1{}; + ScalarRealType m_BN2{}; + ScalarRealType m_BN3{}; + ScalarRealType m_BN4{}; + + ScalarRealType m_BM1{}; + ScalarRealType m_BM2{}; + ScalarRealType m_BM3{}; + ScalarRealType m_BM4{}; template diff --git a/Modules/Filtering/ImageSources/include/itkGenerateImageSource.h b/Modules/Filtering/ImageSources/include/itkGenerateImageSource.h index a9362109564..e64ed9345e7 100644 --- a/Modules/Filtering/ImageSources/include/itkGenerateImageSource.h +++ b/Modules/Filtering/ImageSources/include/itkGenerateImageSource.h @@ -135,10 +135,10 @@ class ITK_TEMPLATE_EXPORT GenerateImageSource : public ImageSource private: SizeType m_Size; // size of the output image - SpacingType m_Spacing; - PointType m_Origin; - DirectionType m_Direction; - IndexType m_StartIndex; + SpacingType m_Spacing{}; + PointType m_Origin{}; + DirectionType m_Direction{}; + IndexType m_StartIndex{}; bool m_UseReferenceImage{ false }; }; diff --git a/Modules/Filtering/ImageStatistics/include/itkHistogramAlgorithmBase.h b/Modules/Filtering/ImageStatistics/include/itkHistogramAlgorithmBase.h index 50afc4b39d2..626699af644 100644 --- a/Modules/Filtering/ImageStatistics/include/itkHistogramAlgorithmBase.h +++ b/Modules/Filtering/ImageStatistics/include/itkHistogramAlgorithmBase.h @@ -91,7 +91,7 @@ class ITK_TEMPLATE_EXPORT HistogramAlgorithmBase : public Object private: /** Target histogram data pointer */ - typename TInputHistogram::ConstPointer m_InputHistogram; + typename TInputHistogram::ConstPointer m_InputHistogram{}; }; // end of class } // end of namespace itk diff --git a/Modules/Filtering/ImageStatistics/include/itkImageShapeModelEstimatorBase.h b/Modules/Filtering/ImageStatistics/include/itkImageShapeModelEstimatorBase.h index 9d197c932f7..b79fe066da1 100644 --- a/Modules/Filtering/ImageStatistics/include/itkImageShapeModelEstimatorBase.h +++ b/Modules/Filtering/ImageStatistics/include/itkImageShapeModelEstimatorBase.h @@ -78,7 +78,7 @@ class ITK_TEMPLATE_EXPORT ImageShapeModelEstimatorBase : public ImageToImageFilt EstimateShapeModels() = 0; /** Container for holding the training image. */ - InputImagePointer m_InputImage; + InputImagePointer m_InputImage{}; }; // class ImageShapeModelEstimator } // namespace itk diff --git a/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h b/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h index 6adb51e7487..8bd0937c0e2 100644 --- a/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h +++ b/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h @@ -97,8 +97,8 @@ class ITK_TEMPLATE_EXPORT LabelObjectLine PrintTrailer(std::ostream & os, Indent indent) const; private: - IndexType m_Index; - LengthType m_Length; + IndexType m_Index{}; + LengthType m_Length{}; }; } // end namespace itk diff --git a/Modules/Filtering/MathematicalMorphology/include/itkFlatStructuringElement.h b/Modules/Filtering/MathematicalMorphology/include/itkFlatStructuringElement.h index b04efedbb00..7d83fb9c79a 100644 --- a/Modules/Filtering/MathematicalMorphology/include/itkFlatStructuringElement.h +++ b/Modules/Filtering/MathematicalMorphology/include/itkFlatStructuringElement.h @@ -224,9 +224,9 @@ class ITK_TEMPLATE_EXPORT FlatStructuringElement : public Neighborhood struct StructuringElementFacet @@ -246,7 +246,7 @@ class ITK_TEMPLATE_EXPORT FlatStructuringElement : public Neighborhood; using FacetType3 = StructuringElementFacet<3>; - bool m_RadiusIsParametric; + bool m_RadiusIsParametric{}; /** Check for correct odd size image. * Return image size. Called in constructor FromImage.*/ diff --git a/Modules/Filtering/MathematicalMorphology/include/itkMorphologyImageFilter.h b/Modules/Filtering/MathematicalMorphology/include/itkMorphologyImageFilter.h index 81f7224fa96..ab4e594cdd4 100644 --- a/Modules/Filtering/MathematicalMorphology/include/itkMorphologyImageFilter.h +++ b/Modules/Filtering/MathematicalMorphology/include/itkMorphologyImageFilter.h @@ -154,10 +154,10 @@ class ITK_TEMPLATE_EXPORT MorphologyImageFilter : public KernelImageFilter m_Dimensions; + std::vector m_Dimensions{}; /** The array which stores the spacing of pixels in the * x, y, z directions. */ - std::vector m_Spacing; + std::vector m_Spacing{}; /** The array which stores the origin of the image. */ - std::vector m_Origin; + std::vector m_Origin{}; /** The arrays which store the direction cosines of the image. */ - std::vector> m_Direction; + std::vector> m_Direction{}; /** Stores the number of bytes it takes to get to the next 'thing' * e.g. component, pixel, row, slice, etc. */ - std::vector m_Strides; + std::vector m_Strides{}; /** Return the object to an initialized state, ready to be used */ virtual void @@ -891,8 +891,8 @@ class ITKIOImageBase_EXPORT ImageIOBase : public LightProcessObject bool HasSupportedExtension(const char *, const ArrayOfExtensionsType &, bool ignoreCase = true); - ArrayOfExtensionsType m_SupportedReadExtensions; - ArrayOfExtensionsType m_SupportedWriteExtensions; + ArrayOfExtensionsType m_SupportedReadExtensions{}; + ArrayOfExtensionsType m_SupportedWriteExtensions{}; }; /** Utility function for writing RAW bytes */ diff --git a/Modules/IO/MeshBase/include/itkMeshIOBase.h b/Modules/IO/MeshBase/include/itkMeshIOBase.h index aabb424d7d5..407880d28f6 100644 --- a/Modules/IO/MeshBase/include/itkMeshIOBase.h +++ b/Modules/IO/MeshBase/include/itkMeshIOBase.h @@ -824,7 +824,7 @@ class ITKIOMeshBase_EXPORT MeshIOBase : public LightProcessObject IOFileEnum m_FileType{ IOFileEnum::ASCII }; /** Filename to read */ - std::string m_FileName; + std::string m_FileName{}; /** Should we compress the data? */ bool m_UseCompression{ false }; @@ -848,13 +848,13 @@ class ITKIOMeshBase_EXPORT MeshIOBase : public LightProcessObject unsigned int m_PointDimension{ 3 }; /** The number of points and cells */ - SizeValueType m_NumberOfPoints; - SizeValueType m_NumberOfCells; - SizeValueType m_NumberOfPointPixels; - SizeValueType m_NumberOfCellPixels; + SizeValueType m_NumberOfPoints{}; + SizeValueType m_NumberOfCells{}; + SizeValueType m_NumberOfPointPixels{}; + SizeValueType m_NumberOfCellPixels{}; /** The buffer size of cells */ - SizeValueType m_CellBufferSize; + SizeValueType m_CellBufferSize{}; /** Flags indicate whether read or write points, cells, point data and cell data */ @@ -864,8 +864,8 @@ class ITKIOMeshBase_EXPORT MeshIOBase : public LightProcessObject bool m_UpdateCellData{ false }; private: - ArrayOfExtensionsType m_SupportedReadExtensions; - ArrayOfExtensionsType m_SupportedWriteExtensions; + ArrayOfExtensionsType m_SupportedReadExtensions{}; + ArrayOfExtensionsType m_SupportedWriteExtensions{}; }; #define MESHIOBASE_TYPEMAP(type, ctype) \ template <> \ diff --git a/Modules/IO/TransformBase/include/itkTransformIOBase.h b/Modules/IO/TransformBase/include/itkTransformIOBase.h index 1ca647d99dd..52557ec153d 100644 --- a/Modules/IO/TransformBase/include/itkTransformIOBase.h +++ b/Modules/IO/TransformBase/include/itkTransformIOBase.h @@ -169,9 +169,9 @@ class ITKIOTransformBase_TEMPLATE_EXPORT TransformIOBaseTemplate : public LightP } private: - std::string m_FileName; - TransformListType m_ReadTransformList; - ConstTransformListType m_WriteTransformList; + std::string m_FileName{}; + TransformListType m_ReadTransformList{}; + ConstTransformListType m_WriteTransformList{}; bool m_AppendMode{ false }; /** Should we compress the data? */ bool m_UseCompression{ false }; diff --git a/Modules/IO/XML/include/itkDOMReader.h b/Modules/IO/XML/include/itkDOMReader.h index b7ecc1ce954..9b28a59d742 100644 --- a/Modules/IO/XML/include/itkDOMReader.h +++ b/Modules/IO/XML/include/itkDOMReader.h @@ -140,18 +140,18 @@ class ITK_TEMPLATE_EXPORT DOMReader : public Object itkGetModifiableObjectMacro(IntermediateDOM, DOMNodeType); /** Variable to hold the input XML file name. */ - std::string m_FileName; + std::string m_FileName{}; /** Variable to hold the output object, created internally or supplied by the user. */ - OutputType * m_Output; + OutputType * m_Output{}; /** Variable to hold the output object if it is a smart object. */ - typename LightObject::Pointer m_OutputHolder; + typename LightObject::Pointer m_OutputHolder{}; /** Variable to hold the intermediate DOM object. */ - DOMNodePointer m_IntermediateDOM; + DOMNodePointer m_IntermediateDOM{}; /** Variable to log various messages during the reading process. */ - mutable LoggerPointer m_Logger; + mutable LoggerPointer m_Logger{}; }; } // namespace itk diff --git a/Modules/IO/XML/include/itkDOMWriter.h b/Modules/IO/XML/include/itkDOMWriter.h index 89365c08cf2..00a9e651ad6 100644 --- a/Modules/IO/XML/include/itkDOMWriter.h +++ b/Modules/IO/XML/include/itkDOMWriter.h @@ -135,18 +135,18 @@ class ITK_TEMPLATE_EXPORT DOMWriter : public Object itkGetModifiableObjectMacro(IntermediateDOM, DOMNodeType); /** Variable to hold the output XML file name. */ - std::string m_FileName; + std::string m_FileName{}; /** Variable to hold the input object. */ - const InputType * m_Input; + const InputType * m_Input{}; /** Variable to hold the input object if it is a smart object. */ - typename LightObject::ConstPointer m_InputHolder; + typename LightObject::ConstPointer m_InputHolder{}; /** Variable to hold the intermediate DOM object. */ - DOMNodePointer m_IntermediateDOM; + DOMNodePointer m_IntermediateDOM{}; /** Variable to log various messages during the writing process. */ - mutable LoggerPointer m_Logger; + mutable LoggerPointer m_Logger{}; }; } // namespace itk diff --git a/Modules/IO/XML/include/itkXMLFile.h b/Modules/IO/XML/include/itkXMLFile.h index 49e3cc03e0c..30e03730a23 100644 --- a/Modules/IO/XML/include/itkXMLFile.h +++ b/Modules/IO/XML/include/itkXMLFile.h @@ -84,7 +84,7 @@ class ITKIOXML_EXPORT XMLReaderBase : public LightProcessObject void parse(); - std::string m_Filename; + std::string m_Filename{}; }; /** diff --git a/Modules/Nonunit/Review/include/itkMultiphaseDenseFiniteDifferenceImageFilter.h b/Modules/Nonunit/Review/include/itkMultiphaseDenseFiniteDifferenceImageFilter.h index f4be0dcd7b3..69d67e60ce4 100644 --- a/Modules/Nonunit/Review/include/itkMultiphaseDenseFiniteDifferenceImageFilter.h +++ b/Modules/Nonunit/Review/include/itkMultiphaseDenseFiniteDifferenceImageFilter.h @@ -228,7 +228,7 @@ class ITK_TEMPLATE_EXPORT MultiphaseDenseFiniteDifferenceImageFilter CalculateChange() override; /** The buffer that holds the updates for an iteration of the algorithm. */ - std::vector m_UpdateBuffers; + std::vector m_UpdateBuffers{}; }; } // end namespace itk diff --git a/Modules/Nonunit/Review/include/itkMultiphaseFiniteDifferenceImageFilter.h b/Modules/Nonunit/Review/include/itkMultiphaseFiniteDifferenceImageFilter.h index 27b3accf909..9602bd083e1 100644 --- a/Modules/Nonunit/Review/include/itkMultiphaseFiniteDifferenceImageFilter.h +++ b/Modules/Nonunit/Review/include/itkMultiphaseFiniteDifferenceImageFilter.h @@ -398,22 +398,22 @@ class ITK_TEMPLATE_EXPORT MultiphaseFiniteDifferenceImageFilter : public InPlace ~MultiphaseFiniteDifferenceImageFilter() override = default; - IdCellType m_FunctionCount; - std::vector m_LevelSet; - VectorIdCellType m_Lookup; - KdTreePointer m_KdTree; + IdCellType m_FunctionCount{}; + std::vector m_LevelSet{}; + VectorIdCellType m_Lookup{}; + KdTreePointer m_KdTree{}; - unsigned int m_ElapsedIterations; - double m_MaximumRMSError; - double m_RMSChange; - unsigned int m_NumberOfIterations; + unsigned int m_ElapsedIterations{}; + double m_MaximumRMSError{}; + double m_RMSChange{}; + unsigned int m_NumberOfIterations{}; /** The function that will be used in calculating updates for each pixel. */ - std::vector m_DifferenceFunctions; + std::vector m_DifferenceFunctions{}; /** Control whether derivatives use spacing of the input image in its * calculation. */ - bool m_UseImageSpacing; + bool m_UseImageSpacing{}; void PrintSelf(std::ostream & os, Indent indent) const override; @@ -531,10 +531,10 @@ class ITK_TEMPLATE_EXPORT MultiphaseFiniteDifferenceImageFilter : public InPlace private: /** Indicates whether the filter automatically resets to UNINITIALIZED state after completing, or whether filter must be manually reset */ - bool m_ManualReinitialization; + bool m_ManualReinitialization{}; /** State that the filter is in, i.e. UNINITIALIZED or INITIALIZED */ - bool m_InitializedState; + bool m_InitializedState{}; }; } // end namespace itk diff --git a/Modules/Nonunit/Review/include/itkRegionBasedLevelSetFunction.h b/Modules/Nonunit/Review/include/itkRegionBasedLevelSetFunction.h index f26e142be18..e629d1b15ef 100644 --- a/Modules/Nonunit/Review/include/itkRegionBasedLevelSetFunction.h +++ b/Modules/Nonunit/Review/include/itkRegionBasedLevelSetFunction.h @@ -380,47 +380,47 @@ class ITK_TEMPLATE_EXPORT RegionBasedLevelSetFunction : public FiniteDifferenceF ~RegionBasedLevelSetFunction() override = default; /** The initial level set image */ - InputImageConstPointer m_InitialImage; + InputImageConstPointer m_InitialImage{}; /** The feature image */ - FeatureImageConstPointer m_FeatureImage; + FeatureImageConstPointer m_FeatureImage{}; - SharedDataPointer m_SharedData; + SharedDataPointer m_SharedData{}; - HeavisideFunctionConstPointer m_DomainFunction; + HeavisideFunctionConstPointer m_DomainFunction{}; /** Area regularization weight */ - ScalarValueType m_AreaWeight; + ScalarValueType m_AreaWeight{}; /** Internal functional of the level set weight */ - ScalarValueType m_Lambda1; + ScalarValueType m_Lambda1{}; /** External functional of the level set weight */ - ScalarValueType m_Lambda2; + ScalarValueType m_Lambda2{}; /** Overlap Penalty Weight */ - ScalarValueType m_OverlapPenaltyWeight; + ScalarValueType m_OverlapPenaltyWeight{}; /** Volume Regularization Weight */ - ScalarValueType m_VolumeMatchingWeight; + ScalarValueType m_VolumeMatchingWeight{}; /** Volume Constraint in pixels */ - ScalarValueType m_Volume; + ScalarValueType m_Volume{}; /** Curvature Regularization Weight */ - ScalarValueType m_CurvatureWeight; + ScalarValueType m_CurvatureWeight{}; - ScalarValueType m_AdvectionWeight; + ScalarValueType m_AdvectionWeight{}; /** Laplacian Regularization Weight */ - ScalarValueType m_ReinitializationSmoothingWeight; + ScalarValueType m_ReinitializationSmoothingWeight{}; - unsigned int m_FunctionId; + unsigned int m_FunctionId{}; std::slice x_slice[Self::ImageDimension]; - OffsetValueType m_Center; - OffsetValueType m_xStride[Self::ImageDimension]; - double m_InvSpacing[Self::ImageDimension]; + OffsetValueType m_Center{}; + OffsetValueType m_xStride[Self::ImageDimension]{}; + double m_InvSpacing[Self::ImageDimension]{}; static double m_WaveDT; static double m_DT; @@ -488,7 +488,7 @@ class ITK_TEMPLATE_EXPORT RegionBasedLevelSetFunction : public FiniteDifferenceF virtual void UpdateSharedDataParameters() = 0; - bool m_UpdateC; + bool m_UpdateC{}; /** This method's only purpose is to initialize the zero vector * constant. */ diff --git a/Modules/Nonunit/Review/include/itkRegionBasedLevelSetFunctionSharedData.h b/Modules/Nonunit/Review/include/itkRegionBasedLevelSetFunctionSharedData.h index 305c92b1593..52bd30099ab 100644 --- a/Modules/Nonunit/Review/include/itkRegionBasedLevelSetFunctionSharedData.h +++ b/Modules/Nonunit/Review/include/itkRegionBasedLevelSetFunctionSharedData.h @@ -172,12 +172,12 @@ class RegionBasedLevelSetFunctionSharedData : public LightObject virtual void PopulateListImage() = 0; - LevelSetDataPointerVector m_LevelSetDataPointerVector; + LevelSetDataPointerVector m_LevelSetDataPointerVector{}; - unsigned int m_FunctionCount; + unsigned int m_FunctionCount{}; unsigned int m_NumberOfNeighbors{ 6 }; - ListImagePointer m_NearestNeighborListImage; - KdTreePointer m_KdTree; + ListImagePointer m_NearestNeighborListImage{}; + KdTreePointer m_KdTree{}; protected: RegionBasedLevelSetFunctionSharedData() diff --git a/Modules/Numerics/FEM/include/itkFEMElement3DMembrane1DOF.h b/Modules/Numerics/FEM/include/itkFEMElement3DMembrane1DOF.h index 6609910d8b3..2d258010208 100644 --- a/Modules/Numerics/FEM/include/itkFEMElement3DMembrane1DOF.h +++ b/Modules/Numerics/FEM/include/itkFEMElement3DMembrane1DOF.h @@ -122,7 +122,7 @@ class ITK_TEMPLATE_EXPORT Element3DMembrane1DOF : public TBaseClass /** * Pointer to material properties of the element */ - MaterialLinearElasticity::ConstPointer m_Mat; + MaterialLinearElasticity::ConstPointer m_Mat{}; }; } // end namespace fem diff --git a/Modules/Numerics/FEM/include/itkFEMElementBase.h b/Modules/Numerics/FEM/include/itkFEMElementBase.h index 08bac829b20..2bc85f0c9c3 100644 --- a/Modules/Numerics/FEM/include/itkFEMElementBase.h +++ b/Modules/Numerics/FEM/include/itkFEMElementBase.h @@ -717,7 +717,7 @@ class ITKFEM_EXPORT Element : public FEMLightObject protected: // to store edge connectivity data - std::vector> m_EdgeIds; + std::vector> m_EdgeIds{}; void PrintSelf(std::ostream & os, Indent indent) const override; diff --git a/Modules/Numerics/FEM/include/itkFEMElementStd.h b/Modules/Numerics/FEM/include/itkFEMElementStd.h index 860ded0bb82..580edea77d1 100644 --- a/Modules/Numerics/FEM/include/itkFEMElementStd.h +++ b/Modules/Numerics/FEM/include/itkFEMElementStd.h @@ -156,7 +156,7 @@ class ITK_TEMPLATE_EXPORT ElementStd : public TBaseClass } // Array of pointers to point objects that define the element - const Node * m_node[NumberOfNodes]; + const Node * m_node[NumberOfNodes]{}; }; } // end namespace fem diff --git a/Modules/Numerics/FEM/include/itkFEMException.h b/Modules/Numerics/FEM/include/itkFEMException.h index 093d776feee..e26752b3475 100644 --- a/Modules/Numerics/FEM/include/itkFEMException.h +++ b/Modules/Numerics/FEM/include/itkFEMException.h @@ -138,8 +138,8 @@ class ITK_ABI_EXPORT FEMExceptionObjectNotFound : public FEMException /** * Base class of the searched object. */ - std::string m_baseClassName; - int m_GlobalNumber; + std::string m_baseClassName{}; + int m_GlobalNumber{}; }; /** diff --git a/Modules/Numerics/FEM/include/itkFEMLinearSystemWrapperItpack.h b/Modules/Numerics/FEM/include/itkFEMLinearSystemWrapperItpack.h index 6425ed2d5fb..2ee456ea8e2 100644 --- a/Modules/Numerics/FEM/include/itkFEMLinearSystemWrapperItpack.h +++ b/Modules/Numerics/FEM/include/itkFEMLinearSystemWrapperItpack.h @@ -726,30 +726,30 @@ class ITKFEM_EXPORT LinearSystemWrapperItpack : public LinearSystemWrapper private: /** pointer to vector of matrices */ - MatrixHolder * m_Matrices; + MatrixHolder * m_Matrices{}; /** pointer to vector of force arrays */ - VectorHolder * m_Vectors; + VectorHolder * m_Vectors{}; /** pointer to vector of solution arrays */ - VectorHolder * m_Solutions; + VectorHolder * m_Solutions{}; /** pointer to array of unsigned int's indicating max number of entries in each matrix */ // UnsignedIntegerArrayPtr m_MaximumNonZeroValues; - unsigned int m_MaximumNonZeroValues; + unsigned int m_MaximumNonZeroValues{}; /** Array of pointers to available solver functions */ - ItkItpackSolverFunction m_Methods[7]; + ItkItpackSolverFunction m_Methods[7]{}; /** flag indicating which solver function should be used */ - integer m_Method; + integer m_Method{}; /** vector of length 12 used to initialize various parameters on input */ - integer m_IPARM[12]; + integer m_IPARM[12]{}; /** vector of length 12 used to initialize various parameters on input */ - doublereal m_RPARM[12]; + doublereal m_RPARM[12]{}; }; /** diff --git a/Modules/Numerics/FEM/include/itkFEMLoadBase.h b/Modules/Numerics/FEM/include/itkFEMLoadBase.h index 22e20834002..a42700db660 100644 --- a/Modules/Numerics/FEM/include/itkFEMLoadBase.h +++ b/Modules/Numerics/FEM/include/itkFEMLoadBase.h @@ -99,7 +99,7 @@ class ITKFEM_EXPORT Load : public FEMLightObject * Pointer to an element in a system that contains the DOF * on which the external force is applied. */ - Element::ConstPointer m_Element; + Element::ConstPointer m_Element{}; }; } // end namespace fem } // end namespace itk diff --git a/Modules/Numerics/NarrowBand/include/itkNarrowBandImageFilterBase.h b/Modules/Numerics/NarrowBand/include/itkNarrowBandImageFilterBase.h index 558af2acc70..d8b1fde2863 100644 --- a/Modules/Numerics/NarrowBand/include/itkNarrowBandImageFilterBase.h +++ b/Modules/Numerics/NarrowBand/include/itkNarrowBandImageFilterBase.h @@ -231,7 +231,7 @@ class ITK_TEMPLATE_EXPORT NarrowBandImageFilterBase : public FiniteDifferenceIma void PrintSelf(std::ostream & os, Indent indent) const override; - NarrowBandPointer m_NarrowBand; + NarrowBandPointer m_NarrowBand{}; /** \struct ThreadRegionType The type of region used in multithreading. @@ -247,7 +247,7 @@ class ITK_TEMPLATE_EXPORT NarrowBandImageFilterBase : public FiniteDifferenceIma /** A list of subregions of the narrowband which are passed to each thread * for parallel processing. */ - std::vector m_RegionList; + std::vector m_RegionList{}; /** This function returns a single region (of the narrow band list) for use in multi-threading */ @@ -288,14 +288,14 @@ class ITK_TEMPLATE_EXPORT NarrowBandImageFilterBase : public FiniteDifferenceIma GenerateData() override; /* Variables to control reinitialization */ - IdentifierType m_ReinitializationFrequency; - IdentifierType m_Step; + IdentifierType m_ReinitializationFrequency{}; + IdentifierType m_Step{}; - bool m_Touched; + bool m_Touched{}; - BooleanStdVectorType m_TouchedForThread; + BooleanStdVectorType m_TouchedForThread{}; - ValueType m_IsoSurfaceValue; + ValueType m_IsoSurfaceValue{}; private: /* This class does not use AllocateUpdateBuffer to allocate memory for its diff --git a/Modules/Numerics/Optimizers/include/itkMultipleValuedNonLinearVnlOptimizer.h b/Modules/Numerics/Optimizers/include/itkMultipleValuedNonLinearVnlOptimizer.h index 67253b18a8a..7f6d641be4d 100644 --- a/Modules/Numerics/Optimizers/include/itkMultipleValuedNonLinearVnlOptimizer.h +++ b/Modules/Numerics/Optimizers/include/itkMultipleValuedNonLinearVnlOptimizer.h @@ -126,14 +126,14 @@ class ITKOptimizers_EXPORT MultipleValuedNonLinearVnlOptimizer : public Multiple void IterationReport(const EventObject & event); - CostFunctionAdaptorType * m_CostFunctionAdaptor; - bool m_UseGradient; + CostFunctionAdaptorType * m_CostFunctionAdaptor{}; + bool m_UseGradient{}; - CommandType::Pointer m_Command; + CommandType::Pointer m_Command{}; - mutable ParametersType m_CachedCurrentPosition; - mutable MeasureType m_CachedValue; - mutable DerivativeType m_CachedDerivative; + mutable ParametersType m_CachedCurrentPosition{}; + mutable MeasureType m_CachedValue{}; + mutable DerivativeType m_CachedDerivative{}; }; } // end namespace itk diff --git a/Modules/Numerics/Optimizers/include/itkMultipleValuedVnlCostFunctionAdaptor.h b/Modules/Numerics/Optimizers/include/itkMultipleValuedVnlCostFunctionAdaptor.h index 8c656e65a44..37ef4e42794 100644 --- a/Modules/Numerics/Optimizers/include/itkMultipleValuedVnlCostFunctionAdaptor.h +++ b/Modules/Numerics/Optimizers/include/itkMultipleValuedVnlCostFunctionAdaptor.h @@ -148,15 +148,15 @@ class ITKOptimizers_EXPORT MultipleValuedVnlCostFunctionAdaptor : public vnl_lea /** Get current parameters scaling. */ itkGetConstReferenceMacro(InverseScales, ScalesType); - MultipleValuedCostFunction::Pointer m_CostFunction; + MultipleValuedCostFunction::Pointer m_CostFunction{}; - bool m_ScalesInitialized; - ScalesType m_InverseScales; - Object::Pointer m_Reporter; + bool m_ScalesInitialized{}; + ScalesType m_InverseScales{}; + Object::Pointer m_Reporter{}; - mutable MeasureType m_CachedValue; - mutable DerivativeType m_CachedDerivative; - mutable ParametersType m_CachedCurrentParameters; + mutable MeasureType m_CachedValue{}; + mutable DerivativeType m_CachedDerivative{}; + mutable ParametersType m_CachedCurrentParameters{}; }; // end of Class CostFunction } // end namespace itk diff --git a/Modules/Numerics/Optimizers/include/itkParticleSwarmOptimizerBase.h b/Modules/Numerics/Optimizers/include/itkParticleSwarmOptimizerBase.h index 857da17c339..3f98df87c79 100644 --- a/Modules/Numerics/Optimizers/include/itkParticleSwarmOptimizerBase.h +++ b/Modules/Numerics/Optimizers/include/itkParticleSwarmOptimizerBase.h @@ -230,23 +230,23 @@ class ITKOptimizers_EXPORT ParticleSwarmOptimizerBase : public SingleValuedNonLi void FileInitialization(); - bool m_PrintSwarm; - std::ostringstream m_StopConditionDescription; - bool m_InitializeNormalDistribution; - NumberOfParticlesType m_NumberOfParticles; - NumberOfIterationsType m_MaximalNumberOfIterations; - NumberOfGenerationsType m_NumberOfGenerationsWithMinimalImprovement; - ParameterBoundsType m_ParameterBounds; - ParametersType m_ParametersConvergenceTolerance; - double m_PercentageParticlesConverged; - CostFunctionType::MeasureType m_FunctionConvergenceTolerance; - std::vector m_Particles; + bool m_PrintSwarm{}; + std::ostringstream m_StopConditionDescription{}; + bool m_InitializeNormalDistribution{}; + NumberOfParticlesType m_NumberOfParticles{}; + NumberOfIterationsType m_MaximalNumberOfIterations{}; + NumberOfGenerationsType m_NumberOfGenerationsWithMinimalImprovement{}; + ParameterBoundsType m_ParameterBounds{}; + ParametersType m_ParametersConvergenceTolerance{}; + double m_PercentageParticlesConverged{}; + CostFunctionType::MeasureType m_FunctionConvergenceTolerance{}; + std::vector m_Particles{}; CostFunctionType::MeasureType m_FunctionBestValue{ 0 }; - std::vector m_FunctionBestValueMemory; - ParametersType m_ParametersBestValue; + std::vector m_FunctionBestValueMemory{}; + ParametersType m_ParametersBestValue{}; NumberOfIterationsType m_IterationIndex{ 0 }; - RandomVariateGeneratorType::IntegerType m_Seed; - bool m_UseSeed; + RandomVariateGeneratorType::IntegerType m_Seed{}; + bool m_UseSeed{}; }; } // end namespace itk diff --git a/Modules/Numerics/Optimizers/include/itkSingleValuedNonLinearVnlOptimizer.h b/Modules/Numerics/Optimizers/include/itkSingleValuedNonLinearVnlOptimizer.h index 7467ccd7da2..22d96d06ec0 100644 --- a/Modules/Numerics/Optimizers/include/itkSingleValuedNonLinearVnlOptimizer.h +++ b/Modules/Numerics/Optimizers/include/itkSingleValuedNonLinearVnlOptimizer.h @@ -139,15 +139,15 @@ class ITKOptimizers_EXPORT SingleValuedNonLinearVnlOptimizer : public SingleValu void IterationReport(const EventObject & event); - CostFunctionAdaptorType * m_CostFunctionAdaptor; + CostFunctionAdaptorType * m_CostFunctionAdaptor{}; - bool m_Maximize; + bool m_Maximize{}; - CommandType::Pointer m_Command; + CommandType::Pointer m_Command{}; - mutable ParametersType m_CachedCurrentPosition; - mutable MeasureType m_CachedValue; - mutable DerivativeType m_CachedDerivative; + mutable ParametersType m_CachedCurrentPosition{}; + mutable MeasureType m_CachedValue{}; + mutable DerivativeType m_CachedDerivative{}; }; } // end namespace itk diff --git a/Modules/Numerics/Optimizers/include/itkSingleValuedVnlCostFunctionAdaptor.h b/Modules/Numerics/Optimizers/include/itkSingleValuedVnlCostFunctionAdaptor.h index 2897265de4a..0f366e1c086 100644 --- a/Modules/Numerics/Optimizers/include/itkSingleValuedVnlCostFunctionAdaptor.h +++ b/Modules/Numerics/Optimizers/include/itkSingleValuedVnlCostFunctionAdaptor.h @@ -150,15 +150,15 @@ class ITKOptimizers_EXPORT SingleValuedVnlCostFunctionAdaptor : public vnl_cost_ /** Get current parameters scaling. */ itkGetConstReferenceMacro(InverseScales, ScalesType); - SingleValuedCostFunction::Pointer m_CostFunction; - bool m_ScalesInitialized; - ScalesType m_InverseScales; - bool m_NegateCostFunction; - Object::Pointer m_Reporter; - - mutable MeasureType m_CachedValue; - mutable DerivativeType m_CachedDerivative; - mutable ParametersType m_CachedCurrentParameters; + SingleValuedCostFunction::Pointer m_CostFunction{}; + bool m_ScalesInitialized{}; + ScalesType m_InverseScales{}; + bool m_NegateCostFunction{}; + Object::Pointer m_Reporter{}; + + mutable MeasureType m_CachedValue{}; + mutable DerivativeType m_CachedDerivative{}; + mutable ParametersType m_CachedCurrentParameters{}; }; // end of Class CostFunction } // end namespace itk diff --git a/Modules/Numerics/Optimizersv4/include/itkConvergenceMonitoringFunction.h b/Modules/Numerics/Optimizersv4/include/itkConvergenceMonitoringFunction.h index 2b916ca6905..4502ec29df2 100644 --- a/Modules/Numerics/Optimizersv4/include/itkConvergenceMonitoringFunction.h +++ b/Modules/Numerics/Optimizersv4/include/itkConvergenceMonitoringFunction.h @@ -115,7 +115,7 @@ class ConvergenceMonitoringFunction : public Object os << std::endl; } - EnergyValueContainerType m_EnergyValues; + EnergyValueContainerType m_EnergyValues{}; }; } // end namespace Function } // end namespace itk diff --git a/Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerBasev4.h b/Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerBasev4.h index 1c08da1ac92..1ea8d593f74 100644 --- a/Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerBasev4.h +++ b/Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerBasev4.h @@ -167,12 +167,12 @@ class ITK_TEMPLATE_EXPORT GradientDescentOptimizerBasev4Template /** Flag to control use of the ScalesEstimator (if set) for * automatic learning step estimation at *each* iteration. */ - bool m_DoEstimateLearningRateAtEachIteration; + bool m_DoEstimateLearningRateAtEachIteration{}; /** Flag to control use of the ScalesEstimator (if set) for * automatic learning step estimation only *once*, during first iteration. */ - bool m_DoEstimateLearningRateOnce; + bool m_DoEstimateLearningRateOnce{}; /** The maximum step size in physical units, to restrict learning rates. * Only used with automatic learning rate estimation. @@ -180,33 +180,33 @@ class ITK_TEMPLATE_EXPORT GradientDescentOptimizerBasev4Template * manually or by using m_ScalesEstimator automatically, and the former has * higher priority than the latter. See main documentation. */ - TInternalComputationValueType m_MaximumStepSizeInPhysicalUnits; + TInternalComputationValueType m_MaximumStepSizeInPhysicalUnits{}; /** Flag to control using the convergence monitoring for stop condition. * This flag should be always set to true except for regular step gradient * descent optimizer that uses minimum step length to check the convergence. */ - bool m_UseConvergenceMonitoring; + bool m_UseConvergenceMonitoring{}; /** Window size for the convergence checker. * The convergence checker calculates convergence value by fitting to * a window of the energy (metric value) profile. */ - SizeValueType m_ConvergenceWindowSize; + SizeValueType m_ConvergenceWindowSize{}; /** The convergence checker. */ - typename ConvergenceMonitoringType::Pointer m_ConvergenceMonitoring; + typename ConvergenceMonitoringType::Pointer m_ConvergenceMonitoring{}; - typename DomainThreader::Pointer m_ModifyGradientByScalesThreader; - typename DomainThreader::Pointer m_ModifyGradientByLearningRateThreader; + typename DomainThreader::Pointer m_ModifyGradientByScalesThreader{}; + typename DomainThreader::Pointer m_ModifyGradientByLearningRateThreader{}; /* Common variables for optimization control and reporting */ bool m_Stop{ false }; - StopConditionObjectToObjectOptimizerEnum m_StopCondition; - StopConditionDescriptionType m_StopConditionDescription; + StopConditionObjectToObjectOptimizerEnum m_StopCondition{}; + StopConditionDescriptionType m_StopConditionDescription{}; /** Current gradient */ - DerivativeType m_Gradient; + DerivativeType m_Gradient{}; void PrintSelf(std::ostream & os, Indent indent) const override; diff --git a/Modules/Numerics/Optimizersv4/include/itkLBFGSOptimizerBasev4.h b/Modules/Numerics/Optimizersv4/include/itkLBFGSOptimizerBasev4.h index e9732953388..55da41ba822 100644 --- a/Modules/Numerics/Optimizersv4/include/itkLBFGSOptimizerBasev4.h +++ b/Modules/Numerics/Optimizersv4/include/itkLBFGSOptimizerBasev4.h @@ -152,9 +152,9 @@ class ITK_TEMPLATE_EXPORT LBFGSOptimizerBasev4 : public SingleValuedNonLinearVnl bool m_OptimizerInitialized{ false }; using InternalOptimizerAutoPointer = std::unique_ptr; - InternalOptimizerAutoPointer m_VnlOptimizer; + InternalOptimizerAutoPointer m_VnlOptimizer{}; - mutable std::ostringstream m_StopConditionDescription; + mutable std::ostringstream m_StopConditionDescription{}; bool m_Trace{ false }; unsigned int m_MaximumNumberOfFunctionEvaluations{ 2000 }; diff --git a/Modules/Numerics/Optimizersv4/include/itkObjectToObjectMetric.h b/Modules/Numerics/Optimizersv4/include/itkObjectToObjectMetric.h index fcaf7219fa8..342bd73fc2e 100644 --- a/Modules/Numerics/Optimizersv4/include/itkObjectToObjectMetric.h +++ b/Modules/Numerics/Optimizersv4/include/itkObjectToObjectMetric.h @@ -357,14 +357,14 @@ class ITK_TEMPLATE_EXPORT ObjectToObjectMetric : public ObjectToObjectMetricBase VerifyNumberOfValidPoints(MeasureType & value, DerivativeType & derivative) const; /** Transforms */ - FixedTransformPointer m_FixedTransform; - MovingTransformPointer m_MovingTransform; + FixedTransformPointer m_FixedTransform{}; + MovingTransformPointer m_MovingTransform{}; - VirtualImagePointer m_VirtualImage; + VirtualImagePointer m_VirtualImage{}; /** Flag that is set when user provides a virtual domain, either via * SetVirtualDomain() or SetVirtualDomainFromImage(). */ - bool m_UserHasSetVirtualDomain; + bool m_UserHasSetVirtualDomain{}; /** Store the number of points used during most recent value and derivative * calculation. diff --git a/Modules/Numerics/Optimizersv4/include/itkObjectToObjectMetricBase.h b/Modules/Numerics/Optimizersv4/include/itkObjectToObjectMetricBase.h index efd59f94686..05f543926e1 100644 --- a/Modules/Numerics/Optimizersv4/include/itkObjectToObjectMetricBase.h +++ b/Modules/Numerics/Optimizersv4/include/itkObjectToObjectMetricBase.h @@ -253,13 +253,13 @@ class ITK_TEMPLATE_EXPORT ObjectToObjectMetricBaseTemplate PrintSelf(std::ostream & os, Indent indent) const override; /** Fixed and Moving Objects */ - ObjectConstPointer m_FixedObject; - ObjectConstPointer m_MovingObject; + ObjectConstPointer m_FixedObject{}; + ObjectConstPointer m_MovingObject{}; - GradientSourceEnum m_GradientSource; + GradientSourceEnum m_GradientSource{}; /** Metric value, stored after evaluating */ - mutable MeasureType m_Value; + mutable MeasureType m_Value{}; }; /** This helps to meet backward compatibility */ diff --git a/Modules/Numerics/Optimizersv4/include/itkObjectToObjectOptimizerBase.h b/Modules/Numerics/Optimizersv4/include/itkObjectToObjectOptimizerBase.h index f87f20e1536..76b6e13da19 100644 --- a/Modules/Numerics/Optimizersv4/include/itkObjectToObjectOptimizerBase.h +++ b/Modules/Numerics/Optimizersv4/include/itkObjectToObjectOptimizerBase.h @@ -276,37 +276,37 @@ class ITK_TEMPLATE_EXPORT ObjectToObjectOptimizerBaseTemplate : public Object ObjectToObjectOptimizerBaseTemplate(); ~ObjectToObjectOptimizerBaseTemplate() override; - MetricTypePointer m_Metric; - ThreadIdType m_NumberOfWorkUnits; - SizeValueType m_CurrentIteration; - SizeValueType m_NumberOfIterations; + MetricTypePointer m_Metric{}; + ThreadIdType m_NumberOfWorkUnits{}; + SizeValueType m_CurrentIteration{}; + SizeValueType m_NumberOfIterations{}; /** Metric measure value at a given iteration, as most recently evaluated. */ - MeasureType m_CurrentMetricValue; + MeasureType m_CurrentMetricValue{}; /** Scales. Size is expected to be == metric->GetNumberOfLocalParameters(). * See the main documentation for more details. */ - ScalesType m_Scales; + ScalesType m_Scales{}; /** Parameter weights. These are applied to local parameters, at the same time * as scales. See main documentation. * If not set by user, the array remains empty and treated as identity to simplify * the reuse of an optimizer with transforms with different numbers of parameters. */ - ScalesType m_Weights; + ScalesType m_Weights{}; /** Flag to avoid unnecessary arithmetic when scales are identity. */ - bool m_ScalesAreIdentity; + bool m_ScalesAreIdentity{}; /** Scales estimator. Optionally provided by user. */ - typename ScalesEstimatorType::Pointer m_ScalesEstimator; + typename ScalesEstimatorType::Pointer m_ScalesEstimator{}; /** Flag to avoid unnecessary arithmetic when weights are identity. */ - bool m_WeightsAreIdentity; + bool m_WeightsAreIdentity{}; /** Flag to control use of the ScalesEstimator (if set) for * automatic scale estimation during StartOptimization() */ - bool m_DoEstimateScales; + bool m_DoEstimateScales{}; void PrintSelf(std::ostream & os, Indent indent) const override; diff --git a/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesEstimator.h b/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesEstimator.h index 58bd13ef101..e99a9c63e9a 100644 --- a/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesEstimator.h +++ b/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesEstimator.h @@ -323,21 +323,21 @@ class ITK_TEMPLATE_EXPORT RegistrationParameterScalesEstimator itkGetMacro(SamplingStrategy, SamplingStrategyType); /** the metric object */ - MetricPointer m_Metric; + MetricPointer m_Metric{}; /** the samples in the virtual domain */ - SamplePointContainerType m_SamplePoints; + SamplePointContainerType m_SamplePoints{}; /** Keep track of the last sampling time. */ - mutable TimeStamp m_SamplingTime; + mutable TimeStamp m_SamplingTime{}; /** the number of samples in the virtual domain */ - SizeValueType m_NumberOfRandomSamples; + SizeValueType m_NumberOfRandomSamples{}; /** the radius of the central region for sampling */ - IndexValueType m_CentralRegionRadius; + IndexValueType m_CentralRegionRadius{}; - typename VirtualPointSetType::ConstPointer m_VirtualDomainPointSet; + typename VirtualPointSetType::ConstPointer m_VirtualDomainPointSet{}; // the threshold to decide if the number of random samples uses logarithm static constexpr SizeValueType SizeOfSmallDomain = 1000; @@ -347,10 +347,10 @@ class ITK_TEMPLATE_EXPORT RegistrationParameterScalesEstimator * m_TransformForward = true (default) for the moving transform parameters. * m_TransformForward = false for the fixed transform parameters. */ - bool m_TransformForward; + bool m_TransformForward{}; // sampling strategy - SamplingStrategyType m_SamplingStrategy; + SamplingStrategyType m_SamplingStrategy{}; }; // class RegistrationParameterScalesEstimator } // namespace itk diff --git a/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesFromShiftBase.h b/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesFromShiftBase.h index 8ef93342e31..9215cfc52f5 100644 --- a/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesFromShiftBase.h +++ b/Modules/Numerics/Optimizersv4/include/itkRegistrationParameterScalesFromShiftBase.h @@ -106,7 +106,7 @@ class ITK_TEMPLATE_EXPORT RegistrationParameterScalesFromShiftBase private: // A small variation of parameters - ParametersValueType m_SmallParameterVariation; + ParametersValueType m_SmallParameterVariation{}; }; // class RegistrationParameterScalesFromShiftBase diff --git a/Modules/Numerics/Optimizersv4/include/itkSingleValuedNonLinearVnlOptimizerv4.h b/Modules/Numerics/Optimizersv4/include/itkSingleValuedNonLinearVnlOptimizerv4.h index b4a76d85a59..762a5b5f820 100644 --- a/Modules/Numerics/Optimizersv4/include/itkSingleValuedNonLinearVnlOptimizerv4.h +++ b/Modules/Numerics/Optimizersv4/include/itkSingleValuedNonLinearVnlOptimizerv4.h @@ -124,12 +124,12 @@ class ITKOptimizersv4_EXPORT SingleValuedNonLinearVnlOptimizerv4 : public Object void IterationReport(const EventObject & event); - CostFunctionAdaptorType * m_CostFunctionAdaptor; + CostFunctionAdaptorType * m_CostFunctionAdaptor{}; - CommandType::Pointer m_Command; + CommandType::Pointer m_Command{}; - mutable ParametersType m_CachedCurrentPosition; - mutable DerivativeType m_CachedDerivative; + mutable ParametersType m_CachedCurrentPosition{}; + mutable DerivativeType m_CachedDerivative{}; }; } // end namespace itk diff --git a/Modules/Numerics/Optimizersv4/include/itkSingleValuedVnlCostFunctionAdaptorv4.h b/Modules/Numerics/Optimizersv4/include/itkSingleValuedVnlCostFunctionAdaptorv4.h index 1bd8a493ed2..05d72834a38 100644 --- a/Modules/Numerics/Optimizersv4/include/itkSingleValuedVnlCostFunctionAdaptorv4.h +++ b/Modules/Numerics/Optimizersv4/include/itkSingleValuedVnlCostFunctionAdaptorv4.h @@ -121,13 +121,13 @@ class SingleValuedVnlCostFunctionAdaptorv4 : public vnl_cost_function ReportIteration(const EventObject & event) const; private: - ObjectToObjectMetricBase::Pointer m_ObjectMetric; - bool m_ScalesInitialized; - ScalesType m_Scales; - Object::Pointer m_Reporter; + ObjectToObjectMetricBase::Pointer m_ObjectMetric{}; + bool m_ScalesInitialized{}; + ScalesType m_Scales{}; + Object::Pointer m_Reporter{}; - mutable MeasureType m_CachedValue; - mutable DerivativeType m_CachedDerivative; + mutable MeasureType m_CachedValue{}; + mutable DerivativeType m_CachedDerivative{}; }; // end of Class CostFunction diff --git a/Modules/Numerics/Polynomials/include/itkMultivariateLegendrePolynomial.h b/Modules/Numerics/Polynomials/include/itkMultivariateLegendrePolynomial.h index dfcacecc40f..1c52ff22dc6 100644 --- a/Modules/Numerics/Polynomials/include/itkMultivariateLegendrePolynomial.h +++ b/Modules/Numerics/Polynomials/include/itkMultivariateLegendrePolynomial.h @@ -304,19 +304,19 @@ class ITKPolynomials_EXPORT MultivariateLegendrePolynomial CalculateYCoef(double norm_z, const CoefficientArrayType & coef); private: - DomainSizeType m_DomainSize; - unsigned int m_Dimension; - unsigned int m_Degree; - unsigned int m_NumberOfCoefficients; - - CoefficientArrayType m_CoefficientArray; - CoefficientArrayType m_CachedXCoef; - CoefficientArrayType m_CachedYCoef; - CoefficientArrayType m_CachedZCoef; - - DoubleArrayType m_NormFactor; - IndexValueType m_PrevY; - IndexValueType m_PrevZ; + DomainSizeType m_DomainSize{}; + unsigned int m_Dimension{}; + unsigned int m_Degree{}; + unsigned int m_NumberOfCoefficients{}; + + CoefficientArrayType m_CoefficientArray{}; + CoefficientArrayType m_CachedXCoef{}; + CoefficientArrayType m_CachedYCoef{}; + CoefficientArrayType m_CachedZCoef{}; + + DoubleArrayType m_NormFactor{}; + IndexValueType m_PrevY{}; + IndexValueType m_PrevZ{}; }; // end of class ITKPolynomials_EXPORT std::ostream & diff --git a/Modules/Numerics/Statistics/include/itkDistanceMetric.h b/Modules/Numerics/Statistics/include/itkDistanceMetric.h index 5d0ddab0c27..483ce0f8fc0 100644 --- a/Modules/Numerics/Statistics/include/itkDistanceMetric.h +++ b/Modules/Numerics/Statistics/include/itkDistanceMetric.h @@ -134,10 +134,10 @@ class ITK_TEMPLATE_EXPORT DistanceMetric : public FunctionBase PrintSelf(std::ostream & os, Indent indent) const override; private: - OriginType m_Origin; + OriginType m_Origin{}; /** Number of components in the MeasurementVectorType */ - MeasurementVectorSizeType m_MeasurementVectorSize; + MeasurementVectorSizeType m_MeasurementVectorSize{}; }; // end of class } // end of namespace Statistics } // end of namespace itk diff --git a/Modules/Numerics/Statistics/include/itkKdTree.h b/Modules/Numerics/Statistics/include/itkKdTree.h index fbdb6329ad2..b8e12d19daa 100644 --- a/Modules/Numerics/Statistics/include/itkKdTree.h +++ b/Modules/Numerics/Statistics/include/itkKdTree.h @@ -237,11 +237,11 @@ struct ITK_TEMPLATE_EXPORT KdTreeNonterminalNode : public KdTreeNode } private: - unsigned int m_PartitionDimension; - MeasurementType m_PartitionValue; - InstanceIdentifier m_InstanceIdentifier; - Superclass * m_Left; - Superclass * m_Right; + unsigned int m_PartitionDimension{}; + MeasurementType m_PartitionValue{}; + InstanceIdentifier m_InstanceIdentifier{}; + Superclass * m_Left{}; + Superclass * m_Right{}; }; // end of class /** @@ -366,15 +366,15 @@ struct ITK_TEMPLATE_EXPORT KdTreeWeightedCentroidNonterminalNode : public KdTree } private: - MeasurementVectorSizeType m_MeasurementVectorSize; - unsigned int m_PartitionDimension; - MeasurementType m_PartitionValue; - CentroidType m_WeightedCentroid; - CentroidType m_Centroid; - InstanceIdentifier m_InstanceIdentifier; - unsigned int m_Size; - Superclass * m_Left; - Superclass * m_Right; + MeasurementVectorSizeType m_MeasurementVectorSize{}; + unsigned int m_PartitionDimension{}; + MeasurementType m_PartitionValue{}; + CentroidType m_WeightedCentroid{}; + CentroidType m_Centroid{}; + InstanceIdentifier m_InstanceIdentifier{}; + unsigned int m_Size{}; + Superclass * m_Left{}; + Superclass * m_Right{}; }; // end of class /** @@ -486,7 +486,7 @@ struct ITK_TEMPLATE_EXPORT KdTreeTerminalNode : public KdTreeNode } private: - std::vector m_InstanceIdentifiers; + std::vector m_InstanceIdentifiers{}; }; // end of class /** diff --git a/Modules/Numerics/Statistics/include/itkMembershipFunctionBase.h b/Modules/Numerics/Statistics/include/itkMembershipFunctionBase.h index 0bd72e80a35..0ed072f2d5a 100644 --- a/Modules/Numerics/Statistics/include/itkMembershipFunctionBase.h +++ b/Modules/Numerics/Statistics/include/itkMembershipFunctionBase.h @@ -139,7 +139,7 @@ class ITK_TEMPLATE_EXPORT MembershipFunctionBase : public FunctionBase; @@ -401,7 +401,7 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetric : public SingleValuedCostFunction SampleFullFixedImageRegion(FixedImageSampleContainer & samples) const; /** Container to store a set of points and fixed image values. */ - FixedImageSampleContainer m_FixedImageSamples; + FixedImageSampleContainer m_FixedImageSamples{}; SizeValueType m_NumberOfParameters{ 0 }; @@ -411,22 +411,22 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetric : public SingleValuedCostFunction // onto this accumulator variable. mutable SizeValueType m_NumberOfPixelsCounted{ 0 }; - FixedImageConstPointer m_FixedImage; - MovingImageConstPointer m_MovingImage; + FixedImageConstPointer m_FixedImage{}; + MovingImageConstPointer m_MovingImage{}; /** Main transform to be used in thread = 0 */ - TransformPointer m_Transform; + TransformPointer m_Transform{}; /** Copies of Transform helpers per thread (N-1 of them, since m_Transform * will do the work for thread=0. */ std::unique_ptr m_ThreaderTransform; - InterpolatorPointer m_Interpolator; + InterpolatorPointer m_Interpolator{}; bool m_ComputeGradient{ true }; - GradientImagePointer m_GradientImage; + GradientImagePointer m_GradientImage{}; - FixedImageMaskConstPointer m_FixedImageMask; - MovingImageMaskConstPointer m_MovingImageMask; + FixedImageMaskConstPointer m_FixedImageMask{}; + MovingImageMaskConstPointer m_MovingImageMask{}; ThreadIdType m_NumberOfWorkUnits{ 1 }; @@ -435,7 +435,7 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetric : public SingleValuedCostFunction bool m_ReseedIterator{ false }; - mutable int m_RandomSeed; + mutable int m_RandomSeed{}; /** Types and variables related to BSpline deformable transforms. * If the transform is of type third order BSplineBaseTransform, @@ -476,20 +476,20 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetric : public SingleValuedCostFunction using DerivativeFunctionType = CentralDifferenceImageFunction; using ImageDerivativesType = CovariantVector; - typename BSplineTransformType::Pointer m_BSplineTransform; + typename BSplineTransformType::Pointer m_BSplineTransform{}; - BSplineTransformWeightsArrayType m_BSplineTransformWeightsArray; - BSplineTransformIndicesArrayType m_BSplineTransformIndicesArray; - MovingImagePointArrayType m_BSplinePreTransformPointsArray; - BooleanArrayType m_WithinBSplineSupportRegionArray; + BSplineTransformWeightsArrayType m_BSplineTransformWeightsArray{}; + BSplineTransformIndicesArrayType m_BSplineTransformIndicesArray{}; + MovingImagePointArrayType m_BSplinePreTransformPointsArray{}; + BooleanArrayType m_WithinBSplineSupportRegionArray{}; - BSplineParametersOffsetType m_BSplineParametersOffset; + BSplineParametersOffsetType m_BSplineParametersOffset{}; // Variables needed for optionally caching values when using a BSpline // transform. bool m_UseCachingOfBSplineWeights{ true }; - mutable BSplineTransformWeightsType m_BSplineTransformWeights; - mutable BSplineTransformIndexArrayType m_BSplineTransformIndices; + mutable BSplineTransformWeightsType m_BSplineTransformWeights{}; + mutable BSplineTransformIndexArrayType m_BSplineTransformIndices{}; mutable std::unique_ptr m_ThreaderBSplineTransformWeights; mutable std::unique_ptr m_ThreaderBSplineTransformIndices; @@ -524,10 +524,10 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetric : public SingleValuedCostFunction /** Boolean to indicate if the interpolator BSpline. */ bool m_InterpolatorIsBSpline{ false }; /** Pointer to BSplineInterpolator. */ - typename BSplineInterpolatorType::Pointer m_BSplineInterpolator; + typename BSplineInterpolatorType::Pointer m_BSplineInterpolator{}; /** Pointer to central difference calculator. */ - typename DerivativeFunctionType::Pointer m_DerivativeCalculator; + typename DerivativeFunctionType::Pointer m_DerivativeCalculator{}; /** Compute image derivatives at a point using a central difference function if we are not using a * BSplineInterpolator, which includes derivatives. @@ -593,7 +593,7 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetric : public SingleValuedCostFunction const typename MultiThreaderType::WorkUnitInfo * m_WorkUnitInfo; }; - MultiThreaderType::Pointer m_Threader; + MultiThreaderType::Pointer m_Threader{}; std::unique_ptr m_ConstSelfWrapper; mutable std::unique_ptr m_ThreaderNumberOfMovingImageSamples; bool m_WithinThreadPreProcess{ false }; @@ -673,7 +673,7 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetric : public SingleValuedCostFunction SynchronizeTransforms() const; private: - FixedImageRegionType m_FixedImageRegion; + FixedImageRegionType m_FixedImageRegion{}; }; } // end namespace itk diff --git a/Modules/Registration/Common/include/itkImageToSpatialObjectMetric.h b/Modules/Registration/Common/include/itkImageToSpatialObjectMetric.h index 66ef79d012e..854db06eb1a 100644 --- a/Modules/Registration/Common/include/itkImageToSpatialObjectMetric.h +++ b/Modules/Registration/Common/include/itkImageToSpatialObjectMetric.h @@ -167,13 +167,13 @@ class ITK_TEMPLATE_EXPORT ImageToSpatialObjectMetric : public SingleValuedCostFu PrintSelf(std::ostream & os, Indent indent) const override; MeasureType m_MatchMeasure{ 0 }; - DerivativeType m_MatchMeasureDerivatives; - mutable TransformPointer m_Transform; - InterpolatorPointer m_Interpolator; + DerivativeType m_MatchMeasureDerivatives{}; + mutable TransformPointer m_Transform{}; + InterpolatorPointer m_Interpolator{}; - MovingSpatialObjectConstPointer m_MovingSpatialObject; - FixedImageConstPointer m_FixedImage; - ParametersType m_LastTransformParameters; + MovingSpatialObjectConstPointer m_MovingSpatialObject{}; + FixedImageConstPointer m_FixedImage{}; + ParametersType m_LastTransformParameters{}; }; } // end namespace itk diff --git a/Modules/Registration/Common/include/itkPDEDeformableRegistrationFunction.h b/Modules/Registration/Common/include/itkPDEDeformableRegistrationFunction.h index f650883ae92..f9ad667cdd4 100644 --- a/Modules/Registration/Common/include/itkPDEDeformableRegistrationFunction.h +++ b/Modules/Registration/Common/include/itkPDEDeformableRegistrationFunction.h @@ -162,19 +162,19 @@ class ITK_TEMPLATE_EXPORT PDEDeformableRegistrationFunction : public FiniteDiffe } /** The moving image. */ - MovingImagePointer m_MovingImage; + MovingImagePointer m_MovingImage{}; /** The fixed image. */ - FixedImagePointer m_FixedImage; + FixedImagePointer m_FixedImage{}; /** The deformation field. */ - DisplacementFieldTypePointer m_DisplacementField; + DisplacementFieldTypePointer m_DisplacementField{}; - mutable double m_Energy; + mutable double m_Energy{}; - bool m_NormalizeGradient; + bool m_NormalizeGradient{}; - mutable double m_GradientStep; + mutable double m_GradientStep{}; }; } // end namespace itk diff --git a/Modules/Registration/Common/include/itkPointSetToImageMetric.h b/Modules/Registration/Common/include/itkPointSetToImageMetric.h index 86fc9c5ab88..e2c1e991e75 100644 --- a/Modules/Registration/Common/include/itkPointSetToImageMetric.h +++ b/Modules/Registration/Common/include/itkPointSetToImageMetric.h @@ -168,19 +168,19 @@ class ITK_TEMPLATE_EXPORT PointSetToImageMetric : public SingleValuedCostFunctio void PrintSelf(std::ostream & os, Indent indent) const override; - mutable SizeValueType m_NumberOfPixelsCounted; + mutable SizeValueType m_NumberOfPixelsCounted{}; - FixedPointSetConstPointer m_FixedPointSet; + FixedPointSetConstPointer m_FixedPointSet{}; - MovingImageConstPointer m_MovingImage; + MovingImageConstPointer m_MovingImage{}; - mutable TransformPointer m_Transform; + mutable TransformPointer m_Transform{}; - InterpolatorPointer m_Interpolator; + InterpolatorPointer m_Interpolator{}; - bool m_ComputeGradient; + bool m_ComputeGradient{}; - GradientImagePointer m_GradientImage; + GradientImagePointer m_GradientImage{}; }; } // end namespace itk diff --git a/Modules/Registration/Common/include/itkPointSetToPointSetMetric.h b/Modules/Registration/Common/include/itkPointSetToPointSetMetric.h index f43b2efabdd..22a9f503093 100644 --- a/Modules/Registration/Common/include/itkPointSetToPointSetMetric.h +++ b/Modules/Registration/Common/include/itkPointSetToPointSetMetric.h @@ -132,11 +132,11 @@ class ITK_TEMPLATE_EXPORT PointSetToPointSetMetric : public MultipleValuedCostFu void PrintSelf(std::ostream & os, Indent indent) const override; - FixedPointSetConstPointer m_FixedPointSet; + FixedPointSetConstPointer m_FixedPointSet{}; - MovingPointSetConstPointer m_MovingPointSet; + MovingPointSetConstPointer m_MovingPointSet{}; - mutable TransformPointer m_Transform; + mutable TransformPointer m_Transform{}; }; } // end namespace itk diff --git a/Modules/Registration/Common/include/itkSimpleMultiResolutionImageRegistrationUI.h b/Modules/Registration/Common/include/itkSimpleMultiResolutionImageRegistrationUI.h index 01e26afd5d4..46b620847f4 100644 --- a/Modules/Registration/Common/include/itkSimpleMultiResolutionImageRegistrationUI.h +++ b/Modules/Registration/Common/include/itkSimpleMultiResolutionImageRegistrationUI.h @@ -62,8 +62,8 @@ class SimpleMultiResolutionImageRegistrationUI } protected: - typename TRegistrator::Pointer m_Registrator; - unsigned long m_Tag; + typename TRegistrator::Pointer m_Registrator{}; + unsigned long m_Tag{}; }; @@ -132,8 +132,8 @@ class ITK_TEMPLATE_EXPORT SimpleMultiResolutionImageRegistrationUI2 } private: - itk::Array m_NumberOfIterations; - itk::Array m_LearningRates; + itk::Array m_NumberOfIterations{}; + itk::Array m_LearningRates{}; }; diff --git a/Modules/Registration/Common/include/itkTransformParametersAdaptorBase.h b/Modules/Registration/Common/include/itkTransformParametersAdaptorBase.h index 94f1e245a43..f4cff262839 100644 --- a/Modules/Registration/Common/include/itkTransformParametersAdaptorBase.h +++ b/Modules/Registration/Common/include/itkTransformParametersAdaptorBase.h @@ -100,7 +100,7 @@ class TransformParametersAdaptorBase : public Object os << "Fixed parameters" << this->m_RequiredFixedParameters << std::endl; } - FixedParametersType m_RequiredFixedParameters; + FixedParametersType m_RequiredFixedParameters{}; }; // class TransformParametersAdaptorBase } // namespace itk diff --git a/Modules/Registration/GPUCommon/include/itkGPUPDEDeformableRegistrationFunction.h b/Modules/Registration/GPUCommon/include/itkGPUPDEDeformableRegistrationFunction.h index 32a86f3c9e1..abcc537f976 100644 --- a/Modules/Registration/GPUCommon/include/itkGPUPDEDeformableRegistrationFunction.h +++ b/Modules/Registration/GPUCommon/include/itkGPUPDEDeformableRegistrationFunction.h @@ -167,19 +167,19 @@ class ITK_TEMPLATE_EXPORT GPUPDEDeformableRegistrationFunction : public GPUFinit } /** The moving image. */ - MovingImagePointer m_MovingImage; + MovingImagePointer m_MovingImage{}; /** The fixed image. */ - FixedImagePointer m_FixedImage; + FixedImagePointer m_FixedImage{}; /** The deformation field. */ - DisplacementFieldTypePointer m_DisplacementField; + DisplacementFieldTypePointer m_DisplacementField{}; - mutable double m_Energy; + mutable double m_Energy{}; - bool m_NormalizeGradient; + bool m_NormalizeGradient{}; - mutable double m_GradientStep; + mutable double m_GradientStep{}; }; } // end namespace itk diff --git a/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4.h b/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4.h index 766c09fdb06..bd4bf311821 100644 --- a/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4.h +++ b/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4.h @@ -691,41 +691,41 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetricv4 /** Get accessor for flag to calculate derivative. */ itkGetConstMacro(ComputeDerivative, bool); - FixedImageConstPointer m_FixedImage; - MovingImageConstPointer m_MovingImage; + FixedImageConstPointer m_FixedImage{}; + MovingImageConstPointer m_MovingImage{}; /** Pointers to interpolators */ - FixedInterpolatorPointer m_FixedInterpolator; - MovingInterpolatorPointer m_MovingInterpolator; - typename FixedImageGradientInterpolatorType::Pointer m_FixedImageGradientInterpolator; - typename MovingImageGradientInterpolatorType::Pointer m_MovingImageGradientInterpolator; + FixedInterpolatorPointer m_FixedInterpolator{}; + MovingInterpolatorPointer m_MovingInterpolator{}; + typename FixedImageGradientInterpolatorType::Pointer m_FixedImageGradientInterpolator{}; + typename MovingImageGradientInterpolatorType::Pointer m_MovingImageGradientInterpolator{}; /** Flag to control use of precomputed gradient filter image or gradient * calculator for image gradient calculations. */ - bool m_UseFixedImageGradientFilter; - bool m_UseMovingImageGradientFilter; + bool m_UseFixedImageGradientFilter{}; + bool m_UseMovingImageGradientFilter{}; /** Gradient filters */ - FixedImageGradientFilterPointer m_FixedImageGradientFilter; - MovingImageGradientFilterPointer m_MovingImageGradientFilter; + FixedImageGradientFilterPointer m_FixedImageGradientFilter{}; + MovingImageGradientFilterPointer m_MovingImageGradientFilter{}; /** Pointer to default gradient filter. Used for easier * initialization of the default filter. */ - typename DefaultFixedImageGradientFilter::Pointer m_DefaultFixedImageGradientFilter; - typename DefaultMovingImageGradientFilter::Pointer m_DefaultMovingImageGradientFilter; + typename DefaultFixedImageGradientFilter::Pointer m_DefaultFixedImageGradientFilter{}; + typename DefaultMovingImageGradientFilter::Pointer m_DefaultMovingImageGradientFilter{}; /** Pointer to default gradient calculators. Used for easier * initialization of the default filter. */ - typename DefaultFixedImageGradientCalculator::Pointer m_DefaultFixedImageGradientCalculator; - typename DefaultMovingImageGradientCalculator::Pointer m_DefaultMovingImageGradientCalculator; + typename DefaultFixedImageGradientCalculator::Pointer m_DefaultFixedImageGradientCalculator{}; + typename DefaultMovingImageGradientCalculator::Pointer m_DefaultMovingImageGradientCalculator{}; /** Gradient images to store gradient filter output. */ - mutable FixedImageGradientImagePointer m_FixedImageGradientImage; - mutable MovingImageGradientImagePointer m_MovingImageGradientImage; + mutable FixedImageGradientImagePointer m_FixedImageGradientImage{}; + mutable MovingImageGradientImagePointer m_MovingImageGradientImage{}; /** Image gradient calculators */ - FixedImageGradientCalculatorPointer m_FixedImageGradientCalculator; - MovingImageGradientCalculatorPointer m_MovingImageGradientCalculator; + FixedImageGradientCalculatorPointer m_FixedImageGradientCalculator{}; + MovingImageGradientCalculatorPointer m_MovingImageGradientCalculator{}; /** Derivative results holder. Uses a raw pointer so we can point it * to a user-provided object. This is used in internal methods so @@ -733,22 +733,22 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetricv4 * safely sharing a derivative object between metrics during multi-variate * analysis, for memory efficiency. * Will be nullptr if not set. */ - mutable DerivativeType * m_DerivativeResult; + mutable DerivativeType * m_DerivativeResult{}; /** Masks */ - FixedImageMaskConstPointer m_FixedImageMask; - MovingImageMaskConstPointer m_MovingImageMask; + FixedImageMaskConstPointer m_FixedImageMask{}; + MovingImageMaskConstPointer m_MovingImageMask{}; /** Sampled point sets */ - FixedSampledPointSetConstPointer m_FixedSampledPointSet; - VirtualPointSetPointer m_VirtualSampledPointSet; + FixedSampledPointSetConstPointer m_FixedSampledPointSet{}; + VirtualPointSetPointer m_VirtualSampledPointSet{}; /** Flag to use a SampledPointSet, i.e. Sparse sampling. */ - bool m_UseSampledPointSet; + bool m_UseSampledPointSet{}; /** Flag to indicate the user set VirtualSampledPointSet over FixedSampledPointSet */ - bool m_UseVirtualSampledPointSet; + bool m_UseVirtualSampledPointSet{}; ImageToImageMetricv4(); ~ImageToImageMetricv4() override = default; @@ -808,20 +808,20 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetricv4 /** Flag for warning about use of GetValue. Will be removed when * GetValue implementation is improved. */ - mutable bool m_HaveMadeGetValueWarning; + mutable bool m_HaveMadeGetValueWarning{}; /** Keep track of the number of sampled fixed points that are * deemed invalid during conversion to virtual domain. * For informational purposes. */ - SizeValueType m_NumberOfSkippedFixedSampledPoints; + SizeValueType m_NumberOfSkippedFixedSampledPoints{}; - bool m_UseFloatingPointCorrection; - DerivativeValueType m_FloatingPointCorrectionResolution; + bool m_UseFloatingPointCorrection{}; + DerivativeValueType m_FloatingPointCorrectionResolution{}; - MetricTraits m_MetricTraits; + MetricTraits m_MetricTraits{}; /** Flag to know if derivative should be calculated */ - mutable bool m_ComputeDerivative; + mutable bool m_ComputeDerivative{}; /** Only floating-point images are currently supported. To support integer images, * several small changes must be made */ diff --git a/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4GetValueAndDerivativeThreaderBase.h b/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4GetValueAndDerivativeThreaderBase.h index 4121b3402a1..2422d3cf251 100644 --- a/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4GetValueAndDerivativeThreaderBase.h +++ b/Modules/Registration/Metricsv4/include/itkImageToImageMetricv4GetValueAndDerivativeThreaderBase.h @@ -197,8 +197,8 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetricv4GetValueAndDerivativeThreaderBase /** Cached values to avoid call overhead. * These will only be set once threading has been started. */ - mutable NumberOfParametersType m_CachedNumberOfParameters; - mutable NumberOfParametersType m_CachedNumberOfLocalParameters; + mutable NumberOfParametersType m_CachedNumberOfParameters{}; + mutable NumberOfParametersType m_CachedNumberOfLocalParameters{}; }; } // end namespace itk diff --git a/Modules/Registration/Metricsv4/include/itkPointSetFunction.h b/Modules/Registration/Metricsv4/include/itkPointSetFunction.h index 1fc1712ce97..08766b99526 100644 --- a/Modules/Registration/Metricsv4/include/itkPointSetFunction.h +++ b/Modules/Registration/Metricsv4/include/itkPointSetFunction.h @@ -112,7 +112,7 @@ class ITK_TEMPLATE_EXPORT PointSetFunction : public FunctionBase; diff --git a/Modules/Segmentation/Classifiers/include/itkClassifierBase.h b/Modules/Segmentation/Classifiers/include/itkClassifierBase.h index 792fc307021..6b26fb90b42 100644 --- a/Modules/Segmentation/Classifiers/include/itkClassifierBase.h +++ b/Modules/Segmentation/Classifiers/include/itkClassifierBase.h @@ -168,13 +168,13 @@ class ITK_TEMPLATE_EXPORT ClassifierBase : public LightProcessObject private: /** Number of classes */ - unsigned int m_NumberOfClasses; + unsigned int m_NumberOfClasses{}; /** Pointer to the decision rule to be used for classification. */ - typename DecisionRuleType::Pointer m_DecisionRule; + typename DecisionRuleType::Pointer m_DecisionRule{}; /** Container to hold the membership functions */ - MembershipFunctionPointerVector m_MembershipFunctions; + MembershipFunctionPointerVector m_MembershipFunctions{}; }; // class Classifier } // namespace itk diff --git a/Modules/Segmentation/Classifiers/include/itkImageModelEstimatorBase.h b/Modules/Segmentation/Classifiers/include/itkImageModelEstimatorBase.h index 4e316671453..175a4566b6b 100644 --- a/Modules/Segmentation/Classifiers/include/itkImageModelEstimatorBase.h +++ b/Modules/Segmentation/Classifiers/include/itkImageModelEstimatorBase.h @@ -150,10 +150,10 @@ class ITK_TEMPLATE_EXPORT ImageModelEstimatorBase : public LightProcessObject unsigned int m_NumberOfModels{ 0 }; /** Container to hold the membership functions */ - MembershipFunctionPointerVector m_MembershipFunctions; + MembershipFunctionPointerVector m_MembershipFunctions{}; /**Container for holding the training image */ - InputImagePointer m_InputImage; + InputImagePointer m_InputImage{}; /** The core virtual function to perform modelling of the input data */ virtual void diff --git a/Modules/Segmentation/KLMRegionGrowing/include/itkRegionGrowImageFilter.h b/Modules/Segmentation/KLMRegionGrowing/include/itkRegionGrowImageFilter.h index 8a2899b0961..2a3ef7a2647 100644 --- a/Modules/Segmentation/KLMRegionGrowing/include/itkRegionGrowImageFilter.h +++ b/Modules/Segmentation/KLMRegionGrowing/include/itkRegionGrowImageFilter.h @@ -137,9 +137,9 @@ class ITK_TEMPLATE_EXPORT RegionGrowImageFilter : public ImageToImageFilter; using ChamferFilterType = FastChamferDistanceImageFilter; - typename IsoFilterType::Pointer m_IsoFilter; + typename IsoFilterType::Pointer m_IsoFilter{}; - typename ChamferFilterType::Pointer m_ChamferFilter; + typename ChamferFilterType::Pointer m_ChamferFilter{}; private: - SegmentationFunctionType * m_SegmentationFunction; + SegmentationFunctionType * m_SegmentationFunction{}; }; } // end namespace itk diff --git a/Modules/Segmentation/LevelSets/include/itkNormalVectorFunctionBase.h b/Modules/Segmentation/LevelSets/include/itkNormalVectorFunctionBase.h index 5a3ddd2a072..369efc5a81c 100644 --- a/Modules/Segmentation/LevelSets/include/itkNormalVectorFunctionBase.h +++ b/Modules/Segmentation/LevelSets/include/itkNormalVectorFunctionBase.h @@ -122,7 +122,7 @@ class ITK_TEMPLATE_EXPORT NormalVectorFunctionBase : public FiniteDifferenceSpar private: /** The time step for normal vector finite difference computations. */ - TimeStepType m_TimeStep; + TimeStepType m_TimeStep{}; }; } // end namespace itk diff --git a/Modules/Segmentation/LevelSets/include/itkSegmentationLevelSetFunction.h b/Modules/Segmentation/LevelSets/include/itkSegmentationLevelSetFunction.h index 3e16b1921f5..8fb2c0ad06c 100644 --- a/Modules/Segmentation/LevelSets/include/itkSegmentationLevelSetFunction.h +++ b/Modules/Segmentation/LevelSets/include/itkSegmentationLevelSetFunction.h @@ -163,13 +163,13 @@ class ITK_TEMPLATE_EXPORT SegmentationLevelSetFunction : public LevelSetFunction protected: /** The image whose features will be used to create a speed image */ - typename FeatureImageType::ConstPointer m_FeatureImage; + typename FeatureImageType::ConstPointer m_FeatureImage{}; /** The image holding the speed values for front propagation */ - typename ImageType::Pointer m_SpeedImage; + typename ImageType::Pointer m_SpeedImage{}; /** The image holding the advection field for front propagation */ - typename VectorImageType::Pointer m_AdvectionImage; + typename VectorImageType::Pointer m_AdvectionImage{}; /** Returns the propagation speed from the precalculated speed image.*/ ScalarValueType @@ -188,9 +188,9 @@ class ITK_TEMPLATE_EXPORT SegmentationLevelSetFunction : public LevelSetFunction m_VectorInterpolator = VectorInterpolatorType::New(); } - typename InterpolatorType::Pointer m_Interpolator; + typename InterpolatorType::Pointer m_Interpolator{}; - typename VectorInterpolatorType::Pointer m_VectorInterpolator; + typename VectorInterpolatorType::Pointer m_VectorInterpolator{}; }; } // namespace itk diff --git a/Modules/Segmentation/LevelSets/include/itkSegmentationLevelSetImageFilter.h b/Modules/Segmentation/LevelSets/include/itkSegmentationLevelSetImageFilter.h index 3b2a9781301..c89d41bffec 100644 --- a/Modules/Segmentation/LevelSets/include/itkSegmentationLevelSetImageFilter.h +++ b/Modules/Segmentation/LevelSets/include/itkSegmentationLevelSetImageFilter.h @@ -535,16 +535,16 @@ class ITK_TEMPLATE_EXPORT SegmentationLevelSetImageFilter /** Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information. */ - bool m_ReverseExpansionDirection; + bool m_ReverseExpansionDirection{}; /** Flag to indicate whether Speed and Advection images are automatically * generated when running the filter. Otherwise, a pointer to images must * be explicitly set or GenerateSpeedImage() and/or GenerateAdvectionImage() * called directly before updating the filter */ - bool m_AutoGenerateSpeedAdvection; + bool m_AutoGenerateSpeedAdvection{}; private: - SegmentationFunctionType * m_SegmentationFunction; + SegmentationFunctionType * m_SegmentationFunction{}; }; } // end namespace itk diff --git a/Modules/Segmentation/LevelSets/include/itkShapePriorMAPCostFunctionBase.h b/Modules/Segmentation/LevelSets/include/itkShapePriorMAPCostFunctionBase.h index a1002b63731..980e921f1a7 100644 --- a/Modules/Segmentation/LevelSets/include/itkShapePriorMAPCostFunctionBase.h +++ b/Modules/Segmentation/LevelSets/include/itkShapePriorMAPCostFunctionBase.h @@ -156,10 +156,10 @@ class ITK_TEMPLATE_EXPORT ShapePriorMAPCostFunctionBase : public SingleValuedCos void PrintSelf(std::ostream & os, Indent indent) const override; - ShapeFunctionPointer m_ShapeFunction; - NodeContainerPointer m_ActiveRegion; + ShapeFunctionPointer m_ShapeFunction{}; + NodeContainerPointer m_ActiveRegion{}; - FeatureImagePointer m_FeatureImage; + FeatureImagePointer m_FeatureImage{}; }; } // end namespace itk diff --git a/Modules/Segmentation/LevelSets/include/itkShapePriorSegmentationLevelSetImageFilter.h b/Modules/Segmentation/LevelSets/include/itkShapePriorSegmentationLevelSetImageFilter.h index a0ae685f8c8..04db81860d9 100644 --- a/Modules/Segmentation/LevelSets/include/itkShapePriorSegmentationLevelSetImageFilter.h +++ b/Modules/Segmentation/LevelSets/include/itkShapePriorSegmentationLevelSetImageFilter.h @@ -191,13 +191,13 @@ class ITK_TEMPLATE_EXPORT ShapePriorSegmentationLevelSetImageFilter ExtractActiveRegion(NodeContainerType * ptr); private: - ShapeFunctionPointer m_ShapeFunction; - CostFunctionPointer m_CostFunction; - OptimizerPointer m_Optimizer; - ParametersType m_InitialParameters; - ParametersType m_CurrentParameters; + ShapeFunctionPointer m_ShapeFunction{}; + CostFunctionPointer m_CostFunction{}; + OptimizerPointer m_Optimizer{}; + ParametersType m_InitialParameters{}; + ParametersType m_CurrentParameters{}; - ShapePriorSegmentationFunctionType * m_ShapePriorSegmentationFunction; + ShapePriorSegmentationFunctionType * m_ShapePriorSegmentationFunction{}; }; } // end namespace itk diff --git a/Modules/Segmentation/LevelSets/include/itkSparseFieldFourthOrderLevelSetImageFilter.h b/Modules/Segmentation/LevelSets/include/itkSparseFieldFourthOrderLevelSetImageFilter.h index b332bd5bd8a..46ce0ae29ed 100644 --- a/Modules/Segmentation/LevelSets/include/itkSparseFieldFourthOrderLevelSetImageFilter.h +++ b/Modules/Segmentation/LevelSets/include/itkSparseFieldFourthOrderLevelSetImageFilter.h @@ -308,51 +308,51 @@ class ITK_TEMPLATE_EXPORT SparseFieldFourthOrderLevelSetImageFilter private: /** This is a iteration counter that gets reset to 0 every time ProcessNormals method is called. */ - unsigned int m_RefitIteration; + unsigned int m_RefitIteration{}; /** This parameter determines the maximum number of SparseFieldLevelSetImageFilter iterations that will be executed between calls to ProcessNormals. */ - unsigned int m_MaxRefitIteration; + unsigned int m_MaxRefitIteration{}; /** This parameter is used to set the corresponding parameter in ImplicitManifoldNormalDiffusionfFilter. */ - unsigned int m_MaxNormalIteration; + unsigned int m_MaxNormalIteration{}; /** This is used to trigger a call to the ProcessNormals method before m_RefitIteration reaches m_MaxRefitIteration if the RMSChange falls below this parameter. */ - ValueType m_RMSChangeNormalProcessTrigger; + ValueType m_RMSChangeNormalProcessTrigger{}; /** This flag is set to true to signal final convergence. It can be used by subclasses that define a Halt method. */ - bool m_ConvergenceFlag; + bool m_ConvergenceFlag{}; /** The level set function with the term for refitting the level set to the processed normal vectors. */ - LevelSetFunctionType * m_LevelSetFunction; + LevelSetFunctionType * m_LevelSetFunction{}; /** This parameter determines the width of the band where we compute * curvature from the processed normals. The wider the band, the more level set * iterations that can be performed between calls to ProcessNormals. It is * qsuggested that this value is left at its default. */ - ValueType m_CurvatureBandWidth; + ValueType m_CurvatureBandWidth{}; /** The parameter that chooses between isotropic/anisotropic filtering of the normal vectors. */ - int m_NormalProcessType; + int m_NormalProcessType{}; /** The conductance parameter used if anisotropic filtering of the normal vectors is chosen. */ - ValueType m_NormalProcessConductance; + ValueType m_NormalProcessConductance{}; /** The parameter that turns on/off the unsharp mask enhancement of the normals. */ - bool m_NormalProcessUnsharpFlag; + bool m_NormalProcessUnsharpFlag{}; /** The weight that controls the extent of enhancement if the NormalProcessUnsharpFlag is ON. */ - ValueType m_NormalProcessUnsharpWeight; + ValueType m_NormalProcessUnsharpWeight{}; /** Constants used in the computations. */ static const SizeValueType m_NumVertex; diff --git a/Modules/Segmentation/LevelSetsv4/include/itkBinaryImageToLevelSetImageAdaptorBase.h b/Modules/Segmentation/LevelSetsv4/include/itkBinaryImageToLevelSetImageAdaptorBase.h index 8730aa72f67..ced05afbb6e 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkBinaryImageToLevelSetImageAdaptorBase.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkBinaryImageToLevelSetImageAdaptorBase.h @@ -74,8 +74,8 @@ class BinaryImageToLevelSetImageAdaptorBase : public Object /** Destructor */ ~BinaryImageToLevelSetImageAdaptorBase() override = default; - InputImagePointer m_InputImage; - LevelSetPointer m_LevelSet; + InputImagePointer m_InputImage{}; + LevelSetPointer m_LevelSet{}; }; } // namespace itk diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionBase.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionBase.h index f2beca54b1d..364a742e171 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionBase.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionBase.h @@ -65,7 +65,7 @@ class ITK_TEMPLATE_EXPORT LevelSetDomainPartitionBase : public Object using IdentifierListIterator = typename IdentifierListType::iterator; using IdentifierListConstIterator = typename IdentifierListType::const_iterator; - IdentifierType m_NumberOfLevelSetFunctions; + IdentifierType m_NumberOfLevelSetFunctions{}; }; } // end namespace itk diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionMesh.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionMesh.h index a38f159a827..5111d9416fb 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionMesh.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionMesh.h @@ -74,8 +74,8 @@ class ITK_TEMPLATE_EXPORT LevelSetDomainPartitionMesh : public LevelSetDomainPar AllocateListDomain(); private: - MeshPointer m_Mesh; - ListMeshType m_ListDomain; + MeshPointer m_Mesh{}; + ListMeshType m_ListDomain{}; }; } // end namespace itk diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationTermBase.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationTermBase.h index 028f6dd26b2..9b805df6124 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationTermBase.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationTermBase.h @@ -160,35 +160,35 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationTermBase : public Object Value(const LevelSetInputIndexType & iP, const LevelSetDataType & iData) = 0; /** Input image */ - InputImagePointer m_Input; + InputImagePointer m_Input{}; /** Container of level-set function */ - LevelSetContainerPointer m_LevelSetContainer; + LevelSetContainerPointer m_LevelSetContainer{}; /** Id of the current level-set function */ - LevelSetIdentifierType m_CurrentLevelSetId; + LevelSetIdentifierType m_CurrentLevelSetId{}; - LevelSetPointer m_CurrentLevelSetPointer; + LevelSetPointer m_CurrentLevelSetPointer{}; /** Coefficient \f$ \alpha_i \f$ */ - LevelSetOutputRealType m_Coefficient; + LevelSetOutputRealType m_Coefficient{}; /** Contribution to the CFL condition (which will be used to compute the * the time step at the next iteration */ - LevelSetOutputRealType m_CFLContribution; + LevelSetOutputRealType m_CFLContribution{}; /** Heaviside function to be used. Depending on the term expression, * this one may need to be provided */ - HeavisideConstPointer m_Heaviside; + HeavisideConstPointer m_Heaviside{}; /** Name to be given to the term. Note by default, one name is provided, * but end-users may rename differently each term. */ - std::string m_TermName; + std::string m_TermName{}; - RequiredDataType m_RequiredData; + RequiredDataType m_RequiredData{}; }; } // namespace itk diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEvolutionBase.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEvolutionBase.h index 180c47194c9..ce3591b3985 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEvolutionBase.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEvolutionBase.h @@ -157,20 +157,20 @@ class ITK_TEMPLATE_EXPORT LevelSetEvolutionBase : public Object virtual void UpdateEquations() = 0; - StoppingCriterionPointer m_StoppingCriterion; + StoppingCriterionPointer m_StoppingCriterion{}; - EquationContainerPointer m_EquationContainer; - typename LevelSetContainerType::Pointer m_LevelSetContainer; + EquationContainerPointer m_EquationContainer{}; + typename LevelSetContainerType::Pointer m_LevelSetContainer{}; - LevelSetOutputRealType m_Alpha; - LevelSetOutputRealType m_Dt; - LevelSetOutputRealType m_RMSChangeAccumulator; - bool m_UserGloballyDefinedTimeStep; - IdentifierType m_NumberOfIterations; + LevelSetOutputRealType m_Alpha{}; + LevelSetOutputRealType m_Dt{}; + LevelSetOutputRealType m_RMSChangeAccumulator{}; + bool m_UserGloballyDefinedTimeStep{}; + IdentifierType m_NumberOfIterations{}; /** Helper members for threading. */ - typename LevelSetContainerType::Iterator m_LevelSetContainerIteratorToProcessWhenThreading; - typename LevelSetContainerType::Iterator m_LevelSetUpdateContainerIteratorToProcessWhenThreading; + typename LevelSetContainerType::Iterator m_LevelSetContainerIteratorToProcessWhenThreading{}; + typename LevelSetContainerType::Iterator m_LevelSetUpdateContainerIteratorToProcessWhenThreading{}; }; } // namespace itk diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetSparseImage.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetSparseImage.h index f24ea3786dc..bdce3d304f1 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetSparseImage.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetSparseImage.h @@ -116,9 +116,9 @@ class ITK_TEMPLATE_EXPORT LevelSetSparseImage : public DiscreteLevelSetImage