[ITK] [ITK-dev] New math comparison methods
Bill Lorensen
bill.lorensen at gmail.com
Tue Aug 18 12:07:21 EDT 2015
If there are no objections, I'll take a pass on changing new math
comparison operators back to vanilla comparisons for cases where
two integral types of the same type are compared
for example in
Modules/Segmentation/Classifiers/include/itkImageGaussianModelEstimator.hxx:
if ( Math::NotAlmostEquals( ( m_NumberOfSamples[classIndex][0] - 1 ), 0.0 ) )
I think there may be other cases that can be reverted but I won't know
until I do a line by line inspection./
On Tue, Aug 18, 2015 at 11:42 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Folks,
>
> It is hard for me see see why the new math comparison operators are
> used for statements like this one in Core/Common/test/
> itkDerivativeOperatorTest
>
> if( itk::Math::NotAlmostEquals( expected.size(), coefficients.size() ) )
> instead of the original:
> if( expected.size() != coefficients.size() )
>
> Can we revisit this topic?
>
> Bill
--
Unpaid intern in BillsBasement at noware dot com
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-developers
More information about the Community
mailing list