In file included from /home/nolden/prj/dc/src/MITK/Modules/MatchPointRegistration/src/Helper/mitkImageStitchingHelper.cpp:13: In file included from /home/nolden/prj/dc/src/MITK/Modules/MatchPointRegistration/include/mitkImageStitchingHelper.h:24: In file included from /home/nolden/prj/dc/src/MITK/Modules/MatchPointRegistration/include/itkStitchImageFilter.h:327: /home/nolden/prj/dc/src/MITK/Modules/MatchPointRegistration/include/itkStitchImageFilter.tpp:228:55: error: variable 'zeroComponent' is uninitialized when passed as a const reference argument here [-Werror,-Wuninitialized-const-reference] = NumericTraits<PixelComponentType>::ZeroValue( zeroComponent ); ^~~~~~~~~~~~~ /home/nolden/prj/dc/src/MITK/Modules/MatchPointRegistration/include/itkStitchImageFilter.h:259:3: note: in instantiation of member function 'itk::StitchImageFilter<itk::Image<int, 3>, itk::Image<int, 3>, double, double>::BeforeThreadedGenerateData' requested here StitchImageFilter(); ^ /home/nolden/prj/dc/src/MITK/Modules/MatchPointRegistration/include/itkStitchImageFilter.h:81:15: note: in instantiation of member function 'itk::StitchImageFilter<itk::Image<int, 3>, itk::Image<int, 3>, double, double>::StitchImageFilter' requested here itkNewMacro(Self);
Description
Description
Revisions and Commits
Revisions and Commits
Restricted Differential Revision |
Related Objects
Related Objects
- Mentioned In
- T28126: 2020 Week 52 (Late December)
Event Timeline
Comment Actions
After reading the itk::NumericTraits documentation and looking into the actual definitions of ZeroValue() I guess the fix could be:
PixelComponentType zeroComponent - = NumericTraits<PixelComponentType>::ZeroValue( zeroComponent ); + = NumericTraits<PixelComponentType>::ZeroValue();