@@ -264,7 +264,7 @@ RunLengthTextureFeaturesImageFilter<TInputImage, TOutputImage>
264264 }
265265 }
266266 // Increase the coresponding bin in the histogram
267- this ->IncreaseHistograme (hist, totalNumberOfRuns,
267+ this ->IncreaseHistogram (hist, totalNumberOfRuns,
268268 curentInNeighborhoodPixelIntensity,
269269 offset, pixelDistance);
270270 }
@@ -387,7 +387,7 @@ RunLengthTextureFeaturesImageFilter<TInputImage, TOutputImage>
387387template <typename TInputImage, typename TOutputImage>
388388void
389389RunLengthTextureFeaturesImageFilter<TInputImage, TOutputImage>
390- ::IncreaseHistograme (unsigned int **hist, unsigned int &totalNumberOfRuns,
390+ ::IncreaseHistogram (unsigned int **hist, unsigned int &totalNumberOfRuns,
391391 const PixelType &curentInNeighborhoodPixelIntensity,
392392 const OffsetType &offset, const unsigned int &pixelDistance)
393393{
@@ -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