From 8f8b7ca7a42b04095c5742937459ad9fde31c88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Sat, 28 Mar 2020 20:15:21 -0400 Subject: [PATCH] ENH: Make the histogram generator set up method private Make the `itk::HistogramThresholdImageFilter::SetUpHistogramGenerator` method introduced in commit 4217cc0 be `private`: no child classes should be able to call the method since it is an essential step in the parent's `GenerateData` method. --- .../include/itkHistogramThresholdImageFilter.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/Filtering/Thresholding/include/itkHistogramThresholdImageFilter.h b/Modules/Filtering/Thresholding/include/itkHistogramThresholdImageFilter.h index 9c8a227394b..1f6237c7243 100644 --- a/Modules/Filtering/Thresholding/include/itkHistogramThresholdImageFilter.h +++ b/Modules/Filtering/Thresholding/include/itkHistogramThresholdImageFilter.h @@ -201,10 +201,6 @@ class ITK_TEMPLATE_EXPORT HistogramThresholdImageFilter : public ImageToImageFil void GenerateData() override; - /** Set up the histogram generator. */ - void - SetUpHistogramGenerator(HistogramGeneratorPointer histogramGenerator); - void VerifyPreconditions() ITKv5_CONST override { @@ -216,6 +212,10 @@ class ITK_TEMPLATE_EXPORT HistogramThresholdImageFilter : public ImageToImageFil } private: + /** Set up the histogram generator. */ + void + SetUpHistogramGenerator(HistogramGeneratorPointer histogramGenerator); + OutputPixelType m_InsideValue; OutputPixelType m_OutsideValue; InputPixelType m_Threshold;