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

Johnson, Hans J hans-johnson at uiowa.edu
Sun May 15 09:15:10 EDT 2016


ehsan.basafa at gmail.com

Could you please provide a new details about the compiler settings that caused problems.  It is great that a solution was found, but I would like to understand the root cause of this problem.  

Were you building with C++11 or C++98 compliance?
GCC or clang or windows?
What version of ITK are you using? (i.e. what is the git hash?

Thank you,
Hans


-- 


On 5/14/16, 6:18 AM, "Insight-users on behalf of Bradley Lowekamp" <insight-users-bounces at itk.org on behalf of blowekamp at mail.nih.gov> wrote:

>Hello,
>
>Great work tracking the issue down!
>
>Does updating to the 4.10rc1 fix your problem?
>
>Brad
>> On May 13, 2016, at 5:28 PM, ebasafa <ehsan.basafa at gmail.com> wrote:
>> 
>> 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.
>> _____________________________________
>> 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://www.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-users
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/mailman/listinfo/community
>_____________________________________
>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://www.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-users

_____________________________________
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://www.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-users


More information about the Community mailing list