From 0b6c5cff9622e358fcf7f11f2b42222a1e13fbf4 Mon Sep 17 00:00:00 2001 From: Jordi Inglada <jordi.inglada@cesbio.cnes.fr> Date: Fri, 30 Sep 2016 16:32:26 +0200 Subject: [PATCH] REFAC: better name for method --- .../include/otbNeighborhoodMajorityVotingImageFilter.h | 6 +++--- .../include/otbNeighborhoodMajorityVotingImageFilter.txx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Modules/Fusion/MajorityVoting/include/otbNeighborhoodMajorityVotingImageFilter.h b/Modules/Fusion/MajorityVoting/include/otbNeighborhoodMajorityVotingImageFilter.h index 74fbefaecb..e858746b7e 100644 --- a/Modules/Fusion/MajorityVoting/include/otbNeighborhoodMajorityVotingImageFilter.h +++ b/Modules/Fusion/MajorityVoting/include/otbNeighborhoodMajorityVotingImageFilter.h @@ -191,9 +191,9 @@ protected: //Get a histogram of frequencies of labels with the 2 highest frequencies sorted in decreasing order // and return the frequency of the label of the center pixel - const HistoSummary FillNeighborhoodHistogram(const NeighborhoodIteratorType &nit, - const KernelIteratorType kernelBegin, - const KernelIteratorType kernelEnd) const; + const HistoSummary ComputeNeighborhoodHistogramSummary(const NeighborhoodIteratorType &nit, + const KernelIteratorType kernelBegin, + const KernelIteratorType kernelEnd) const; private: NeighborhoodMajorityVotingImageFilter(const Self&); //purposely not implemented diff --git a/Modules/Fusion/MajorityVoting/include/otbNeighborhoodMajorityVotingImageFilter.txx b/Modules/Fusion/MajorityVoting/include/otbNeighborhoodMajorityVotingImageFilter.txx index ba2d66fc11..68c320f85f 100644 --- a/Modules/Fusion/MajorityVoting/include/otbNeighborhoodMajorityVotingImageFilter.txx +++ b/Modules/Fusion/MajorityVoting/include/otbNeighborhoodMajorityVotingImageFilter.txx @@ -55,7 +55,7 @@ NeighborhoodMajorityVotingImageFilter<TInputImage, TOutputImage, if (centerPixel != m_LabelForNoDataPixels) { //Get a histogram of label frequencies where the 2 highest are at the beginning and sorted - const HistoSummary histoSummary = this->FillNeighborhoodHistogram(nit, kernelBegin, kernelEnd); + const HistoSummary histoSummary = this->ComputeNeighborhoodHistogramSummary(nit, kernelBegin, kernelEnd); if(m_OnlyIsolatedPixels && histoSummary.freqCenterLabel > m_IsolatedThreshold) { @@ -94,7 +94,7 @@ template<class TInputImage, class TOutputImage, class TKernel> const typename NeighborhoodMajorityVotingImageFilter<TInputImage, TOutputImage, TKernel>::HistoSummary NeighborhoodMajorityVotingImageFilter<TInputImage, TOutputImage, - TKernel>::FillNeighborhoodHistogram(const NeighborhoodIteratorType &nit, + TKernel>::ComputeNeighborhoodHistogramSummary(const NeighborhoodIteratorType &nit, const KernelIteratorType kernelBegin, const KernelIteratorType kernelEnd) const { -- GitLab