Skip to content

Commit

Permalink
Merge pull request #1740 from ANTsX/CompWarn
Browse files Browse the repository at this point in the history
COMP:  Remove warnings.
  • Loading branch information
ntustison authored May 3, 2024
2 parents b1a0233 + b590ac8 commit 806fe2d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 25 deletions.
4 changes: 0 additions & 4 deletions Examples/iMathFunctions.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -280,17 +280,14 @@ iMathFillHoles(typename ImageType::Pointer image, double holeParam) /*0*/
GHood.GoToBegin();

unsigned long objectedge = 0;
unsigned long backgroundedge = 0;
unsigned long totaledge = 0;
unsigned long volume = 0;

while (!GHood.IsAtEnd())
{
typename ImageType::PixelType p = GHood.GetCenterPixel();
typename ImageType::IndexType ind2;
if (itk::Math::FloatAlmostEqual(p, static_cast<typename ImageType::PixelType>(lab)))
{
volume++;
for (unsigned int i = 0; i < GHood.Size(); i++)
{
ind2 = GHood.GetIndex(i);
Expand All @@ -303,7 +300,6 @@ iMathFillHoles(typename ImageType::Pointer image, double holeParam) /*0*/
else if (itk::Math::FloatAlmostEqual(val2, itk::NumericTraits<float>::OneValue()) &&
GHood.GetPixel(i) != lab)
{
backgroundedge++;
totaledge++;
}
}
Expand Down
8 changes: 0 additions & 8 deletions Examples/iMathFunctions2.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,6 @@ iMathGetLargestComponent(typename ImageType::Pointer image, /*3*/

typedef itk::ImageRegionIteratorWithIndex<ImageType> Iterator;

// compute the voxel volume
typename ImageType::SpacingType spacing = image->GetSpacing();
float volumeelement = 1.0;
for (unsigned int i = 0; i < spacing.Size(); i++)
{
volumeelement *= static_cast<float>(spacing[i]);
}

typedef itk::Image<unsigned long, ImageDimension> LabelImageType;
typedef itk::BinaryThresholdImageFilter<ImageType, LabelImageType> ThresholdFilterType;
typedef itk::ConnectedComponentImageFilter<LabelImageType, LabelImageType> FilterType;
Expand Down
9 changes: 0 additions & 9 deletions Utilities/itkAverageAffineTransformFunction.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,6 @@ AverageAffineTransformFunction<TTransform>::AverageMultipleAffineTransform(
affine_output->SetIdentity();
affine_output->SetCenter(reference_center);

unsigned int number_of_affine = m_TransformList.size();

number_of_affine--;

// if (verbose)
// {
// std::cout << affine_output;
// }

typename TransformListType::iterator it = m_TransformList.begin();

typename InternalAffineTransformType::Pointer average_iaff = InternalAffineTransformType::New();
Expand Down
5 changes: 1 addition & 4 deletions Utilities/itkN3BiasFieldCorrectionImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,11 @@
#include "itkSubtractImageFilter.h"
#include "itkVectorIndexSelectionCastImageFilter.h"

CLANG_PRAGMA_PUSH
CLANG_SUPPRESS_Wfloat_equal
#include "vnl/algo/vnl_fft_1d.h"
#include "vnl/vnl_complex_traits.h"
#include "complex"
CLANG_PRAGMA_POP

namespace itk
namespace itk
{

template <typename TInputImage, typename TMaskImage, typename TOutputImage>
Expand Down

0 comments on commit 806fe2d

Please sign in to comment.