diff --git a/Modules/Fusion/MajorityVoting/include/otbNeighborhoodMajorityVotingImageFilter.h b/Modules/Fusion/MajorityVoting/include/otbNeighborhoodMajorityVotingImageFilter.h index 74fbefaecb3768df321207ee78f8c54275721a8b..e858746b7ee17892f31ddfff2a8c34a32aed0edf 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 ba2d66fc11451e72491301f764c863bc7b1c90bb..68c320f85f02834bbd02bfc2ebac06accd43d409 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 {