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

STYLE: indentation

parent a74a269a
No related branches found
No related tags found
No related merge requests found
...@@ -69,21 +69,21 @@ typename NeighborhoodMajorityVotingImageFilter<TInputImage, TOutputImage, ...@@ -69,21 +69,21 @@ typename NeighborhoodMajorityVotingImageFilter<TInputImage, TOutputImage,
} }
else else
{ {
//Extraction of the more representative Label in the neighborhood (majorityLabel) and its Frequency (majorityFreq) //Extraction of the more representative Label in the neighborhood (majorityLabel) and its Frequency (majorityFreq)
majorityFreq = histoNeighVec[0].second; //Frequency majorityFreq = histoNeighVec[0].second; //Frequency
majorityLabel = histoNeighVec[0].first; //Label majorityLabel = histoNeighVec[0].first; //Label
//If the majorityLabel is NOT unique in the neighborhood //If the majorityLabel is NOT unique in the neighborhood
if(histoNeighVec[1].second == majorityFreq && histoNeighVec[1].first != majorityLabel) if(histoNeighVec[1].second == majorityFreq && histoNeighVec[1].first != majorityLabel)
{
if (m_KeepOriginalLabelBool == true)
{
majorityLabel = centerPixel;
}
else
{ {
majorityLabel = m_LabelForUndecidedPixels; if (m_KeepOriginalLabelBool == true)
{
majorityLabel = centerPixel;
}
else
{
majorityLabel = m_LabelForUndecidedPixels;
}
} }
}
} }
...@@ -91,12 +91,12 @@ typename NeighborhoodMajorityVotingImageFilter<TInputImage, TOutputImage, ...@@ -91,12 +91,12 @@ typename NeighborhoodMajorityVotingImageFilter<TInputImage, TOutputImage,
}//END if (centerPixel != m_LabelForNoDataPixels) }//END if (centerPixel != m_LabelForNoDataPixels)
//If (centerPixel == m_LabelForNoDataPixels) //If (centerPixel == m_LabelForNoDataPixels)
else else
{ {
majorityLabel = m_LabelForNoDataPixels; majorityLabel = m_LabelForNoDataPixels;
} }
return majorityLabel; return majorityLabel;
} }
template<class TInputImage, class TOutputImage, class TKernel> 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