Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ zap.pl crlf=input
* hooks-max-size=100000
Modules/ThirdParty/** hooks-max-size=300000
Modules/ThirdParty/VNL/src/vxl/v3p/netlib/triangle.c hooks-max-size=670000
Modules/Filtering/Denoising/include/itkPatchBasedDenoisingImageFilter.hxx hooks-max-size=120000
4 changes: 2 additions & 2 deletions Examples/DataRepresentation/Image/ImageAdaptor3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class VectorPixelAccessor
using InternalType = itk::CovariantVector<float,2>;
using ExternalType = float;

VectorPixelAccessor() : m_Index(0) {}
VectorPixelAccessor() {}

VectorPixelAccessor & operator=( const VectorPixelAccessor & vpa ) = default;
ExternalType Get( const InternalType & input ) const
Expand All @@ -82,7 +82,7 @@ class VectorPixelAccessor
}

private:
unsigned int m_Index;
unsigned int m_Index{0};
};
// Software Guide : EndCodeSnippet
}
Expand Down
4 changes: 2 additions & 2 deletions Examples/DataRepresentation/Image/ImageAdaptor4.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ThresholdingPixelAccessor
using InternalType = unsigned char;
using ExternalType = unsigned char;

ThresholdingPixelAccessor() : m_Threshold(0) {};
ThresholdingPixelAccessor() {};

ExternalType Get( const InternalType & input ) const
{
Expand All @@ -80,7 +80,7 @@ class ThresholdingPixelAccessor
operator=( const ThresholdingPixelAccessor & vpa ) = default;

private:
InternalType m_Threshold;
InternalType m_Threshold{0};
};
}

Expand Down
4 changes: 2 additions & 2 deletions Examples/RegistrationITKv4/MultiResImageRegistration1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ class CommandIterationUpdate : public itk::Command
itkNewMacro( Self );

protected:
CommandIterationUpdate(): m_CumulativeIterationIndex(0) {};
CommandIterationUpdate() {};

public:
using OptimizerType = itk::RegularStepGradientDescentOptimizerv4<double>;
Expand All @@ -305,7 +305,7 @@ class CommandIterationUpdate : public itk::Command
std::cout << m_CumulativeIterationIndex++ << std::endl;
}
private:
unsigned int m_CumulativeIterationIndex;
unsigned int m_CumulativeIterationIndex{0};
};


Expand Down
4 changes: 2 additions & 2 deletions Examples/RegistrationITKv4/MultiResImageRegistration2.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class CommandIterationUpdate : public itk::Command
itkNewMacro( Self );

protected:
CommandIterationUpdate(): m_CumulativeIterationIndex(0) {};
CommandIterationUpdate() {};

public:
using OptimizerType = itk::RegularStepGradientDescentOptimizer;
Expand All @@ -105,7 +105,7 @@ class CommandIterationUpdate : public itk::Command
}

private:
unsigned int m_CumulativeIterationIndex;
unsigned int m_CumulativeIterationIndex{0};
};

// The following section of code implements a Command observer
Expand Down
4 changes: 2 additions & 2 deletions Examples/RegistrationITKv4/MultiStageImageRegistration1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class CommandIterationUpdate : public itk::Command
itkNewMacro( Self );

protected:
CommandIterationUpdate(): m_CumulativeIterationIndex(0) {};
CommandIterationUpdate() {};

public:
using OptimizerType = itk::GradientDescentOptimizerv4Template<double>;
Expand All @@ -160,7 +160,7 @@ class CommandIterationUpdate : public itk::Command
}

private:
unsigned int m_CumulativeIterationIndex;
unsigned int m_CumulativeIterationIndex{0};
};

int main( int argc, char *argv[] )
Expand Down
4 changes: 2 additions & 2 deletions Examples/RegistrationITKv4/MultiStageImageRegistration2.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class CommandIterationUpdate : public itk::Command
itkNewMacro( Self );

protected:
CommandIterationUpdate(): m_CumulativeIterationIndex(0) {};
CommandIterationUpdate() {};

public:
using OptimizerType = itk::GradientDescentOptimizerv4Template<double>;
Expand Down Expand Up @@ -162,7 +162,7 @@ class CommandIterationUpdate : public itk::Command
}

private:
unsigned int m_CumulativeIterationIndex;
unsigned int m_CumulativeIterationIndex{0};
};

int main( int argc, char *argv[] )
Expand Down
13 changes: 5 additions & 8 deletions Modules/Core/Common/include/itkAnnulusOperator.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,7 @@ class ITK_TEMPLATE_EXPORT AnnulusOperator:

AnnulusOperator():
NeighborhoodOperator< TPixel, TDimension, TAllocator >(),
m_InnerRadius(1.0),
m_Thickness( 1.0 ),
m_Normalize(false),
m_BrightCenter(false),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An unnecessary (?) empty line.

m_InteriorValue(NumericTraits< PixelType >::ZeroValue()),
m_AnnulusValue(NumericTraits< PixelType >::OneValue()),
m_ExteriorValue(NumericTraits< PixelType >::ZeroValue()),
Expand Down Expand Up @@ -220,10 +217,10 @@ class ITK_TEMPLATE_EXPORT AnnulusOperator:

private:

double m_InnerRadius;
double m_Thickness;
bool m_Normalize;
bool m_BrightCenter;
double m_InnerRadius{1.0};
double m_Thickness{ 1.0 };
bool m_Normalize{false};
bool m_BrightCenter{false};
PixelType m_InteriorValue;
PixelType m_AnnulusValue;
PixelType m_ExteriorValue;
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkAutoPointer.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class AutoPointer
using Self = AutoPointer;

/** Constructor. */
AutoPointer ():m_Pointer(nullptr), m_IsOwner(false)
AutoPointer ():m_Pointer(nullptr)
{}

/** Copy constructor. */
Expand Down Expand Up @@ -201,7 +201,7 @@ class AutoPointer

/** The pointer to the object referred to by this smart pointer. */
ObjectType *m_Pointer;
bool m_IsOwner;
bool m_IsOwner{false};
};

template< typename T >
Expand Down
6 changes: 3 additions & 3 deletions Modules/Core/Common/include/itkBarrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ class ITKCommon_EXPORT Barrier
Barrier();
~Barrier() override;

unsigned int m_NumberArrived;
unsigned int m_NumberExpected;
unsigned int m_Generation; // Allows successive waits
unsigned int m_NumberArrived{0};
unsigned int m_NumberExpected{0};
unsigned int m_Generation{0}; // Allows successive waits
std::condition_variable m_ConditionVariable;
std::mutex m_Mutex;
};
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkColorTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class ITK_TEMPLATE_EXPORT ColorTable:public Object

void DeleteColors();

unsigned int m_NumberOfColors;
unsigned int m_NumberOfColors{ 0 };

ColorNameVectorType m_ColorName;
ColorVectorType m_Color;
Expand Down
3 changes: 1 addition & 2 deletions Modules/Core/Common/include/itkColorTable.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ namespace itk
{
template< typename TPixel >
ColorTable< TPixel >
::ColorTable() :
m_NumberOfColors( 0 )
::ColorTable()
{
}

Expand Down
8 changes: 4 additions & 4 deletions Modules/Core/Common/include/itkCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,10 @@ class ITKCommon_EXPORT CStyleCommand:public Command
CStyleCommand();
~CStyleCommand() override;

void * m_ClientData;
FunctionPointer m_Callback;
ConstFunctionPointer m_ConstCallback;
DeleteDataFunctionPointer m_ClientDataDeleteCallback;
void * m_ClientData{ nullptr };
FunctionPointer m_Callback{ nullptr };
ConstFunctionPointer m_ConstCallback{ nullptr };
DeleteDataFunctionPointer m_ClientDataDeleteCallback{ nullptr };
};
} // end namespace itk

Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkConditionalConstIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class ITK_TEMPLATE_EXPORT ConditionalConstIterator
RegionType m_Region;

/** Is the iterator at the end of its walk? */
bool m_IsAtEnd;
bool m_IsAtEnd{false};
};
} // end namespace itk

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace itk
{
template< typename TImageType >
ConditionalConstIterator< TImageType >
::ConditionalConstIterator() : m_IsAtEnd(false)
::ConditionalConstIterator()
{}

template< typename TImageType >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ class ITK_TEMPLATE_EXPORT ConicShellInteriorExteriorSpatialFunction:
private:
InputType m_Origin;
GradientType m_OriginGradient;
double m_DistanceMin;
double m_DistanceMax;
double m_Epsilon;
bool m_Polarity;
double m_DistanceMin{ 0.0 };
double m_DistanceMax{ 0.0 };
double m_Epsilon{ 0.0 };
bool m_Polarity{ false };
};
} // end namespace itk

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ namespace itk
{
template< unsigned int VDimension, typename TInput >
ConicShellInteriorExteriorSpatialFunction< VDimension, TInput >
::ConicShellInteriorExteriorSpatialFunction() :
m_DistanceMin( 0.0 ),
m_DistanceMax( 0.0 ),
m_Epsilon( 0.0 ),
m_Polarity( false )
::ConicShellInteriorExteriorSpatialFunction()

{
m_Origin.Fill(0.0);
m_OriginGradient.Fill(0.0);
Expand Down
6 changes: 3 additions & 3 deletions Modules/Core/Common/include/itkConstNeighborhoodIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -524,12 +524,12 @@ class ITK_TEMPLATE_EXPORT ConstNeighborhoodIterator:
mutable bool m_InBounds[Dimension];

/** Denotes if iterator is entirely within bounds */
mutable bool m_IsInBounds;
mutable bool m_IsInBounds{false};

/** Is the m_InBounds and m_IsInBounds variables up to date? Set to
* false whenever the iterator is repositioned. Set to true within
* InBounds(). */
mutable bool m_IsInBoundsValid;
mutable bool m_IsInBoundsValid{false};

/** Lower threshold of in-bounds loop counter values. */
IndexType m_InnerBoundsLow;
Expand All @@ -541,7 +541,7 @@ class ITK_TEMPLATE_EXPORT ConstNeighborhoodIterator:
TBoundaryCondition m_InternalBoundaryCondition;

/** Does the specified region need to worry about boundary conditions? */
bool m_NeedToUseBoundaryCondition;
bool m_NeedToUseBoundaryCondition{false};

/** Functor type used to access neighborhoods of pixel pointers */
NeighborhoodAccessorFunctorType m_NeighborhoodAccessorFunctor;
Expand Down
6 changes: 2 additions & 4 deletions Modules/Core/Common/include/itkConstNeighborhoodIterator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,8 @@ ConstNeighborhoodIterator< TImage, TBoundaryCondition >

template< typename TImage, typename TBoundaryCondition >
ConstNeighborhoodIterator< TImage, TBoundaryCondition >
::ConstNeighborhoodIterator() :
m_IsInBounds(false),
m_IsInBoundsValid(false),
m_NeedToUseBoundaryCondition(false)
::ConstNeighborhoodIterator()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another unnecessary (?) empty line.

{
IndexType zeroIndex; zeroIndex.Fill(0);
SizeType zeroSize; zeroSize.Fill(0);
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkDataObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ITKCommon_EXPORT DataObjectError:public ExceptionObject
virtual void PrintSelf(std::ostream & os, Indent indent) const;

private:
DataObject *m_DataObject;
DataObject *m_DataObject{nullptr};
};

/** \class InvalidRequestRegionError
Expand Down
6 changes: 3 additions & 3 deletions Modules/Core/Common/include/itkDefaultVectorPixelAccessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class ITK_TEMPLATE_EXPORT DefaultVectorPixelAccessor
/** Get Vector lengths */
VectorLengthType GetVectorLength() const { return m_VectorLength; }

DefaultVectorPixelAccessor() : m_VectorLength(0), m_OffsetMultiplier(0) {}
DefaultVectorPixelAccessor() {}

/** Constructor to initialize VectorLength at construction time */
DefaultVectorPixelAccessor(VectorLengthType l)
Expand All @@ -104,8 +104,8 @@ class ITK_TEMPLATE_EXPORT DefaultVectorPixelAccessor
~DefaultVectorPixelAccessor() = default;

private:
VectorLengthType m_VectorLength;
VectorLengthType m_OffsetMultiplier;
VectorLengthType m_VectorLength{0};
VectorLengthType m_OffsetMultiplier{0};
};
} // end namespace itk

Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkDerivativeOperator.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ITK_TEMPLATE_EXPORT DerivativeOperator:
using PixelRealType = typename Superclass::PixelRealType;

/** Constructor. */
DerivativeOperator():m_Order(1) {}
DerivativeOperator() {}

/** Copy constructor. */
DerivativeOperator(const Self & other):
Expand Down Expand Up @@ -126,7 +126,7 @@ class ITK_TEMPLATE_EXPORT DerivativeOperator:

private:
/** Order of the derivative. */
unsigned int m_Order;
unsigned int m_Order{1};
};
} // namespace itk

Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkDomainThreader.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class ITK_TEMPLATE_EXPORT DomainThreader: public Object
* the number allocated by the threader if the object does not split
* well into that number.
* This value is determined at the beginning of \c Execute(). */
ThreadIdType m_NumberOfWorkUnitsUsed;
ThreadIdType m_NumberOfWorkUnitsUsed{0};
ThreadIdType m_NumberOfWorkUnits;
typename DomainPartitionerType::Pointer m_DomainPartitioner;
DomainType m_CompleteDomain;
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkDomainThreader.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ namespace itk
template< typename TDomainPartitioner, typename TAssociate >
DomainThreader< TDomainPartitioner, TAssociate >
::DomainThreader()
: m_Associate(nullptr),
m_NumberOfWorkUnitsUsed(0)
: m_Associate(nullptr)

{
this->m_DomainPartitioner = DomainPartitionerType::New();
this->m_MultiThreader = MultiThreaderBase::New();
Expand Down
10 changes: 5 additions & 5 deletions Modules/Core/Common/include/itkFrustumSpatialFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ class ITK_TEMPLATE_EXPORT FrustumSpatialFunction:

private:
InputType m_Apex;
double m_AngleZ;
double m_ApertureAngleX;
double m_ApertureAngleY;
double m_TopPlane;
double m_BottomPlane;
double m_AngleZ{ 0.0f };
double m_ApertureAngleX{ 0.0f };
double m_ApertureAngleY{ 0.0f };
double m_TopPlane{ 0.0f };
double m_BottomPlane{ 0.0f };
FrustumRotationPlaneType m_RotationPlane;
};
} // end namespace itk
Expand Down
6 changes: 1 addition & 5 deletions Modules/Core/Common/include/itkFrustumSpatialFunction.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ namespace itk
{
template< unsigned int VDimension, typename TInput >
FrustumSpatialFunction< VDimension, TInput >::FrustumSpatialFunction() :
m_AngleZ( 0.0f ),
m_ApertureAngleX( 0.0f ),
m_ApertureAngleY( 0.0f ),
m_TopPlane( 0.0f ),
m_BottomPlane( 0.0f ),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another unnecessary (?) empty line.

m_RotationPlane( RotateInXZPlane )
{
m_Apex.Fill( 0.0f );
Expand Down
Loading