Skip to content

Commit

Permalink
Merge pull request #31 from jhlegarreta/FixDifferentIntegerComparison…
Browse files Browse the repository at this point in the history
…Warning

COMP: Fix signed and unsigned integer comparison warnings
  • Loading branch information
dzenanz committed Apr 9, 2019
2 parents 9434a6e + f3017ba commit 18d8b00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/itkAnisotropicDiffusionLBRImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ struct AnisotropicDiffusionLBRImageFilter< TImage, TScalar >
TensorType DiffusionTensor;
for(ImageDimensionType i=0; i < ImageDimension; ++i){
DiffusionTensor(order[i],order[i]) = ev[i];
for(int j=0; j<i; ++j) DiffusionTensor(i,j) = 0.;
for(ImageDimensionType j=0; j<i; ++j) DiffusionTensor(i,j) = 0.;
}
return DiffusionTensor.Rotate(eigenVectors.GetTranspose());
}
Expand Down
2 changes: 1 addition & 1 deletion include/itkLinearAnisotropicDiffusionLBRImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected:
for(ImageDimensionType j=0; j<i && same; ++j)
if( ScalarProduct(D,sb[i],sb[j]) > 0 ){
const VectorType u=sb[i], v=sb[j];
for(auto k=0,l=0; k<=ImageDimension; ++k)
for(ImageDimensionType k=0,l=0; k<=ImageDimension; ++k)
if(k!=i && k!=j)
sb[l++]=sb[k]+u;
sb[2]=-u;
Expand Down

0 comments on commit 18d8b00

Please sign in to comment.