Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions SoftwareGuide/Latex/Appendices/CodingStyleGuide.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1575,9 +1575,9 @@ \section{Initialization and Assignment}
double m_Thickness{ 1.0 };
bool m_Normalize{ false };
bool m_BrightCenter{ false };
PixelType m_InteriorValue{ NumericTraits<PixelType>::ZeroValue() };
PixelType m_InteriorValue{};
PixelType m_AnnulusValue{ NumericTraits<PixelType>::OneValue() };
PixelType m_ExteriorValue{ NumericTraits<PixelType>::ZeroValue() };
PixelType m_ExteriorValue{};
SpacingType m_Spacing{ 1.0 };
\end{minted}
\normalsize
Expand All @@ -1598,7 +1598,7 @@ \section{Initialization and Assignment}
\begin{minted}[baselinestretch=1,fontsize=\footnotesize,linenos=false,bgcolor=ltgray]{cpp}
template <typename TInputImage, typename TOutputImage>
SpecializedFilter<TInputImage, TOutputImage>::SpecializedFilter()
: m_BackgroundValue(NumericTraits<OutputImagePixelType>::ZeroValue())
: m_BackgroundValue{}
, m_ForegroundValue(NumericTraits<OutputImagePixelType>::OneValue())
{
...
Expand All @@ -1613,7 +1613,7 @@ \section{Initialization and Assignment}
template <typename TInputImage, typename TOutputImage>
SpecializedFilter<TInputImage, TOutputImage>::SpecializedFilter()
{
m_BackgroundValue = NumericTraits<OutputImagePixelType>::ZeroValue();
m_BackgroundValue = {};
m_ForegroundValue = NumericTraits<OutputImagePixelType>::OneValue();

...
Expand All @@ -1639,10 +1639,6 @@ \section{Initialization and Assignment}
example \code{FixedArray::m\_InternalArray} and \code{Index::m\_InternalArray}
do not have a default member initializer.

Note that all numeric data members must be initialized using the appropriate
ITK's \code{NumericTraits} static method.


\section{Accessing Members}
\label{sec:Accessing Members}

Expand Down Expand Up @@ -2231,7 +2227,7 @@ \subsection{White Spaces}
template <typename TInputImage, typename TOutputImage>
SpecializedFilter<TInputImage, TOutputImage>::SpecializedFilter()
: m_ForegroundValue(NumericTraits<InputImagePixelType>::max())
, m_BackgroundValue(NumericTraits<InputImagePixelType>::ZeroValue())
, m_BackgroundValue{}
, m_NumPixelComponents(0)
, m_NoiseSigmaIsSet(false)
, m_SearchSpaceList(ListAdaptorType::New())
Expand Down