Skip to content

Commit a9a48e1

Browse files
committed
COMP: RunLength signed / unsigned comparison
To address: c:\jenkins\workspace\itkgerritwindows\itk-src\modules\remote\texturefeatures\include\itkRunLengthTextureFeaturesImageFilter.hxx(404): warning C4018: '<': signed/unsigned mismatch
1 parent fa14977 commit a9a48e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/itkRunLengthTextureFeaturesImageFilter.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,10 @@ RunLengthTextureFeaturesImageFilter<TInputImage, TOutputImage>
398398
}
399399
offsetDistance = std::sqrt(offsetDistance);
400400

401-
int offsetDistanceBin = (int)(( offsetDistance*pixelDistance - m_MinDistance)/
401+
int offsetDistanceBin = static_cast< int>(( offsetDistance*pixelDistance - m_MinDistance)/
402402
( (m_MaxDistance - m_MinDistance) / (float)m_NumberOfBinsPerAxis ));
403403

404-
if (offsetDistanceBin < m_NumberOfBinsPerAxis)
404+
if (offsetDistanceBin < static_cast< int >( m_NumberOfBinsPerAxis ))
405405
{
406406
totalNumberOfRuns++;
407407
hist[curentInNeighborhoodPixelIntensity][offsetDistanceBin]++;

0 commit comments

Comments
 (0)