Skip to content
Snippets Groups Projects
Commit 0b6c5cff authored by Jordi Inglada's avatar Jordi Inglada
Browse files

REFAC: better name for method

parent 7d568715
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment