Skip to content

Commit 13cb8d9

Browse files
committed
BUG: Suppretion of unused variable
Suppression of m_Spacing that is useless in coocurrenceTextureFeatures and causing memory access problems
1 parent 2b4544f commit 13cb8d9

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

include/itkCoocurrenceTextureFeaturesImageFilter.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ class ITK_TEMPLATE_EXPORT CoocurrenceTextureFeaturesImageFilter:public ImageToIm
239239
PixelType m_Min;
240240
PixelType m_Max;
241241
PixelType m_InsidePixelValue;
242-
typename TInputImage::SpacingType m_Spacing;
243242
bool m_Normalize;
244243

245244

include/itkCoocurrenceTextureFeaturesImageFilter.hxx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -458,26 +458,23 @@ CoocurrenceTextureFeaturesImageFilter<TInputImage, TOutputImage>
458458

459459
itkPrintSelfObjectMacro( DigitalizedInputImage );
460460

461-
os << indent << "NeighborhoodRadius"
461+
os << indent << "NeighborhoodRadius: "
462462
<< static_cast< typename NumericTraits<
463463
NeighborhoodRadiusType >::PrintType >( m_NeighborhoodRadius ) << std::endl;
464464

465465
itkPrintSelfObjectMacro( Offsets );
466466

467-
os << indent << "NumberOfBinsPerAxis" << m_NumberOfBinsPerAxis << std::endl;
468-
os << indent << "Min"
467+
os << indent << "NumberOfBinsPerAxis: " << m_NumberOfBinsPerAxis << std::endl;
468+
os << indent << "Min: "
469469
<< static_cast< typename NumericTraits< PixelType >::PrintType >( m_Min )
470470
<< std::endl;
471-
os << indent << "Max"
471+
os << indent << "Max: "
472472
<< static_cast< typename NumericTraits< PixelType >::PrintType >( m_Max )
473473
<< std::endl;
474-
os << indent << "InsidePixelValue"
474+
os << indent << "InsidePixelValue: "
475475
<< static_cast< typename NumericTraits< PixelType >::PrintType >(
476476
m_InsidePixelValue ) << std::endl;
477-
os << indent << "Spacing"
478-
<< static_cast< typename NumericTraits<
479-
typename TInputImage::SpacingType >::PrintType >( m_Spacing ) << std::endl;
480-
os << indent << "Normalize" << m_Normalize << std::endl;
477+
os << indent << "Normalize: " << m_Normalize << std::endl;
481478
}
482479
} // end of namespace Statistics
483480
} // end of namespace itk

0 commit comments

Comments
 (0)