Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMP: Remove warnings. #1740

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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