[ITK-users] [ITK] ShapeLabelMap Roundness/Perimeter Calculation Issue

ebasafa ehsan.basafa at gmail.com
Fri May 13 17:28:04 EDT 2016


Thank you for the pointer! After fiddling with the hxx file for a couple
hours, I traced the issue further and found out the method vnl_math_abs()
called on line 537 (which seems like in the repository has been replaced by
itk::Math::abs() but not implemented in the stable release), provides
different answers for absolute values in debug and release. Surprisingly,
for example, this method reports -1 as absolute value of -1 in release!
Replacing that with std::abs() resolves the issue and now roundness and
perimeter are the same and (seemingly) correct. I think a bug fix, if not
already done via itk::Math as I mentioned, is in order.




--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ShapeLabelMap-Roundness-Perimeter-Calculation-Issue-tp7588837p7588841.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list