Skip to content

ENH: Avoid duplicated code in itk::HistogramThresholdImageFilter#1732

Merged
jhlegarreta merged 1 commit intoInsightSoftwareConsortium:masterfrom
jhlegarreta:AvoidDuplicateCodeInHistogramThresholdImageFilter
Mar 28, 2020
Merged

ENH: Avoid duplicated code in itk::HistogramThresholdImageFilter#1732
jhlegarreta merged 1 commit intoInsightSoftwareConsortium:masterfrom
jhlegarreta:AvoidDuplicateCodeInHistogramThresholdImageFilter

Conversation

@jhlegarreta
Copy link
Copy Markdown
Member

Refactor itk::HistogramThresholdImageFilter to avoid duplicated code,
and thus prevent potential bugs that can go unnoticed.

PR Checklist

  • No API changes were made (or the changes have been approved)
  • No major design changes were made (or the changes have been approved)
  • Added test (or behavior not changed)
  • Updated API documentation (or API not changed)
  • Added license to new files (if any)
  • Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5
  • Added ITK examples for all new major features (if any)

@jhlegarreta jhlegarreta added area:Filtering Issues affecting the Filtering module type:Enhancement Improvement of existing methods or implementation labels Mar 27, 2020
Copy link
Copy Markdown
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented Mar 27, 2020

Modules/Filtering/Thresholding/include/itkHistogramThresholdImageFilter.hxx:77:83: error: typename specifier refers to non-type member 'New' in 'itk::Statistics::ImageToHistogramFilter<itk::Image<float, 2> >'

Refactor `itk::HistogramThresholdImageFilter` to avoid duplicated code,
and thus prevent potential bugs that can go unnoticed.
@jhlegarreta jhlegarreta force-pushed the AvoidDuplicateCodeInHistogramThresholdImageFilter branch from 9f03b21 to 4217cc0 Compare March 27, 2020 22:56
@jhlegarreta jhlegarreta merged commit 6eb74e0 into InsightSoftwareConsortium:master Mar 28, 2020
@jhlegarreta jhlegarreta deleted the AvoidDuplicateCodeInHistogramThresholdImageFilter branch March 28, 2020 04:02
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request May 6, 2026
…oidDuplicateCodeInHistogramThresholdImageFilter

ENH: Avoid duplicated code in `itk::HistogramThresholdImageFilter`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Filtering Issues affecting the Filtering module type:Enhancement Improvement of existing methods or implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants