Skip to content
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

BUG: Fix failing filter and KW-Style tests #28

Merged

Conversation

mseng10
Copy link

@mseng10 mseng10 commented Apr 22, 2020

Changing dim to Dim fixes the failing KWStyle test thrown for this module.

For the filters, these changes address #27. They had to be reverted to the classic ITK multi-threading system, because they utilize a custom region splitter. This required:

  • DynamiicMultThreadingOn() to DynamiicMultThreadingOff() in filter's constructor.

  • Changing method DynamicThreadedGenerateData() to ThreadedGenerateData() with theadId passed as a parameter.

    • Includes progress reporting.
  • Adding ProgressReporter object as parameter to doOneDimension() methods.

include/itkLabelSetDilateImageFilter.hxx Outdated Show resolved Hide resolved
include/itkLabelSetMorphBaseImageFilter.hxx Outdated Show resolved Hide resolved
The filters were originlly setup to utilize the new Multi-threader format. However, these filters utilize a custom region splitter that requires the classic multi-threader.
The changes required changing:

 - DynamiicMultThreadingOn() to DynamiicMultThreadingOff() in filter's constructor, in order to utilize classic multi-threader

 - DynamicThreadedGenerateData() to ThreadedGenerateData with theadId passed as a parameter

 - Add ProgressReporter object as parameter to doOneDimension methods.
@hjmjohnson hjmjohnson merged commit 1779487 into InsightSoftwareConsortium:master Apr 22, 2020
@mseng10
Copy link
Author

mseng10 commented Apr 22, 2020

This fixes #27, closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants