[Insight-users] Bad warning in itkAntiAliasBinaryImageFilter

Elena Pavlovskaia elena.pavlovskaia at otismed.com
Wed Mar 21 21:23:28 EST 2007


Never mind!

It should not cause actual problems:

a) The filter never uses the problem m_LowerBinaryValue member value.
b) This member is used only in GetLowerBinaryValue function.
c) The m_LowerBinaryValue is correctly updated in
AntiAliasBinaryImageFilter<TInputImage, TOutputImage>
::GenerateData() function.

Elena



Hello ITK developers,

I am getting a warning:

insighttoolkit-2.4.1\code\algorithms\itkAntiAliasBinaryImageFilter.txx(76) :
warning C4146: unary minus operator applied to unsigned type, result still
unsigned

The offending line 76 is:
  m_LowerBinaryValue = - NumericTraits<BinaryValueType>::One;

Is it a bug?

Elena



More information about the Insight-users mailing list