Skip to content

Commit

Permalink
COMP: Remove of compiler warning
Browse files Browse the repository at this point in the history
Originally compared int i to unsigned int InputImageDimension. Changed i to unsigned int.
  • Loading branch information
mseng10 committed Mar 9, 2020
1 parent 2695a40 commit 2810eb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/itkPhaseSymmetryImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ PhaseSymmetryImageFilter<TInputImage, TOutputImage>::PhaseSymmetryImageFilter()

// Create 2 initialze wavelengths
m_Wavelengths.SetSize(2, InputImageDimension);
for (int i = 0; i < InputImageDimension; i++)
for (unsigned int i = 0; i < InputImageDimension; i++)
{
m_Wavelengths(0, i) = 10.0;
m_Wavelengths(1, i) = 20.0;
}

// Set basic orientations
m_Orientations.SetSize(InputImageDimension, InputImageDimension);
for (int i = 0; i < InputImageDimension; i++)
for (unsigned int i = 0; i < InputImageDimension; i++)
{
for (int j = 0; j < InputImageDimension; j++)
for (unsigned int j = 0; j < InputImageDimension; j++)
{
if (i == j)
{
Expand Down
2 changes: 1 addition & 1 deletion include/itkSteerableFilterFreqImageSource.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ SteerableFilterFreqImageSource<TOutputImage>::DynamicThreadedGenerateData(
radius = 0;
dotProduct = 0;

for (int i = 0; i < TOutputImage::ImageDimension; i++)
for (unsigned int i = 0; i < TOutputImage::ImageDimension; i++)
{
dist[i] = (double(index[i]) - centerPoint[i]) / double(m_Size[i]);
dotProduct = dotProduct + m_Orientation[i] * dist[i];
Expand Down

0 comments on commit 2810eb5

Please sign in to comment.