-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a test case to itkPhaseAnalysisSoftThresholdImageFilterTest #38
Comments
Change for a warning. It seems I get different results than Jon in my machine. ``` Expected: 10044.5, but got: 10055.1 Test failed! Error in GetSigmaAmp() Expected: 5020.3, but got: 5018.47 Test failed! Error in GetThreshold() Expected: 20085.1, but got: 20092 ``` See Issue #38
Thanks! I had to remove the hard check between doubles: GetAmp(), GetThreshold, etc. |
The differences are notable. Looks weird; may be the floating point precision issues get accumulated and end up in relatively large errors in this case? The However, I'm intrigued by the difference; may be @thewtex @fbudin69500 can provide more insight on the large differences observed once they get some time? |
Yes, those differences are larger that what is usually observed for floating point comparisons, so may be there is some numerical improvements or bugs we could address. The Side note or possibly related, can this code: be placed in |
@thewtex yeah, good point, better to test the base However not sure if moving that barrier code to |
Once option to have multiple multi-threaded operations in a filter is to use the itk::DomainThreader. This is like the It currently requires quite a bit of code to set up, but it is an an option. |
The
itk::PhaseAnalysisSoftThresholdImageFilterTest
has a boolean member variable (withm_ApplySoftThreshold
), which would be nice to test when setting tofalse
.Pablo, I can do it if you wish once PR #34 gets hopefully merged.
The text was updated successfully, but these errors were encountered: