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

STYLE: indentation

parent a74a269a
Branches
Tags
No related merge requests found
......@@ -69,21 +69,21 @@ typename NeighborhoodMajorityVotingImageFilter<TInputImage, TOutputImage,
}
else
{
//Extraction of the more representative Label in the neighborhood (majorityLabel) and its Frequency (majorityFreq)
majorityFreq = histoNeighVec[0].second; //Frequency
majorityLabel = histoNeighVec[0].first; //Label
//If the majorityLabel is NOT unique in the neighborhood
if(histoNeighVec[1].second == majorityFreq && histoNeighVec[1].first != majorityLabel)
{
if (m_KeepOriginalLabelBool == true)
{
majorityLabel = centerPixel;
}
else
//Extraction of the more representative Label in the neighborhood (majorityLabel) and its Frequency (majorityFreq)
majorityFreq = histoNeighVec[0].second; //Frequency
majorityLabel = histoNeighVec[0].first; //Label
//If the majorityLabel is NOT unique in the neighborhood
if(histoNeighVec[1].second == majorityFreq && histoNeighVec[1].first != majorityLabel)
{
majorityLabel = m_LabelForUndecidedPixels;
if (m_KeepOriginalLabelBool == true)
{
majorityLabel = centerPixel;
}
else
{
majorityLabel = m_LabelForUndecidedPixels;
}
}
}
}
......@@ -91,12 +91,12 @@ typename NeighborhoodMajorityVotingImageFilter<TInputImage, TOutputImage,
}//END if (centerPixel != m_LabelForNoDataPixels)
//If (centerPixel == m_LabelForNoDataPixels)
else
{
majorityLabel = m_LabelForNoDataPixels;
}
else
{
majorityLabel = m_LabelForNoDataPixels;
}
return majorityLabel;
return majorityLabel;
}
template<class TInputImage, class TOutputImage, class TKernel>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment