Commit 5a561cc
committed
BUG: Initialize m_Spacing in RunLengthTextureFeatures
To address the valgrind error:
1 ==19980== Conditional jump or move depends on uninitialised value(s)
2 ==19980== at 0x5D466C8: __printf_fp_l (printf_fp.c:381)
3 ==19980== by 0x5D450B8: vfprintf (vfprintf.c:1631)
4 ==19980== by 0x5D6CA48: vsnprintf (vsnprintf.c:114)
5 ==19980== by 0x5832F5B: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
6 ==19980== by 0x5861A56: std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char, std::ostreambuf_ iterator<char, std::char_traits<char> > >::_M_insert_float<double>(std::ostreambuf_iterator<char, std::char_traits<cha r> >, std::ios_base&, char, char, double) const (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
7 ==19980== by 0x5861D6F: std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::do_put(std::o streambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, double) const (in /usr/lib/x86_64-linux-gnu/l ibstdc++.so.6.0.21)
8 ==19980== by 0x586DFC4: std::ostream& std::ostream::_M_insert<double>(double) (in /usr/lib/x86_64-linux-gnu/libstdc ++.so.6.0.21)
9 ==19980== by 0x50D4F9: operator<< (ostream:221)
10 ==19980== by 0x50D4F9: std::ostream& itk::operator<< <double, 3u>(std::ostream&, itk::Point<double, 3u> const&) (it kPoint.hxx:312)
11 ==19980== by 0x50DC86: itk::Statistics::RunLengthTextureFeaturesImageFilter<itk::Image<int, 3u>, itk::Image<itk::Ve ctor<float, 10u>, 3u> >::PrintSelf(std::ostream&, itk::Indent) const (itkRunLengthTextureFeaturesImageFilter.hxx:530)
12 ==19980== by 0x4EEB8F1: itk::LightObject::Print(std::ostream&, itk::Indent) const (in /home/matt/bin/ITK3-GCC-RelWi thDebInfo/lib/libITKCommon-4.13.so.1)
13 ==19980== by 0x501042: RunLengthTextureFeaturesImageFilterInstantiationTest(int, char**) (RunLengthTextureFeaturesI mageFilterInstantiationTest.cxx:66)
14 ==19980== by 0x47E0B3: main (TextureFeaturesTestDriver.cxx:191)
15 =1 parent 221769e commit 5a561cc
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
0 commit comments