Skip to content

Commit 96d888f

Browse files
authored
Merge pull request #23 from thewtex/warnings
Warnings
2 parents fa14977 + 354c439 commit 96d888f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/itkRunLengthTextureFeaturesImageFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class ITK_TEMPLATE_EXPORT RunLengthTextureFeaturesImageFilter:public ImageToImag
229229

230230
void NormalizeOffsetDirection(OffsetType &offset);
231231
bool IsInsideNeighborhood(const OffsetType &iteratedOffset);
232-
void IncreaseHistograme(unsigned int **hist, unsigned int &totalNumberOfRuns,
232+
void IncreaseHistogram(unsigned int **hist, unsigned int &totalNumberOfRuns,
233233
const PixelType &curentInNeighborhoodPixelIntensity,
234234
const OffsetType &offset, const unsigned int &pixelDistance);
235235
void ComputeFeatures( unsigned int **hist, const unsigned int &totalNumberOfRuns,

include/itkRunLengthTextureFeaturesImageFilter.hxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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>
387387
template<typename TInputImage, typename TOutputImage>
388388
void
389389
RunLengthTextureFeaturesImageFilter<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

Comments
 (0)