22 #ifndef __SummingFilter_hxx
23 #define __SummingFilter_hxx
26 #include "itkProgressReporter.h"
34 template <
class TInputImage,
class TOutputImage>
37 itkDebugMacro(<<
"Generate output information");
38 Superclass::GenerateOutputInformation();
45 template <
class TInputImage,
class TOutputImage>
52 unsigned int nbInputImages = this->GetNumberOfInputs();
53 unsigned int nbInputBands;
56 for (
unsigned int i = 0; i < nbInputImages; i++)
60 nbInputBands = currentImage->GetNumberOfComponentsPerPixel();
64 pix.SetSize(nbInputBands);
67 for (outputIt.GoToBegin(); !outputIt.IsAtEnd(); ++outputIt)
70 for (
unsigned int i = 0; i < nbInputImages; i++)
73 for (
unsigned int band = 0; band < nbInputBands; band++)
75 pix[band] += inputIt[i].Get()[band];
virtual void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread)
TInputImage InputImageType
OutputImageType::RegionType OutputImageRegionType
itk::ImageRegionConstIterator< InputImageType > InputIteratorType
itk::ImageRegionIterator< OutputImageType > OutputIteratorType
OutputImageType::PixelType OutputImagePixelType
virtual void GenerateOutputInformation(void)
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.