21 #ifndef otbExtractROI_hxx
22 #define otbExtractROI_hxx
25 #include "itkImageRegionIterator.h"
26 #include "itkProgressReporter.h"
34 template <
class TInputPixel,
class TOutputPixel>
37 this->DynamicMultiThreadingOn();
43 template <
class TInputPixel,
class TOutputPixel>
46 Superclass::PrintSelf(os, indent);
58 template <
class TInputPixel,
class TOutputPixel>
62 Superclass::GenerateOutputInformation();
65 template <
class TInputPixel,
class TOutputPixel>
68 itkDebugMacro(<<
"Actually executing");
71 typename Superclass::InputImageConstPointer inputPtr = this->GetInput();
72 typename Superclass::OutputImagePointer outputPtr = this->GetOutput();
76 this->CallCopyOutputRegionToInputRegion(inputRegionForThread, outputRegionForThread);
79 typedef itk::ImageRegionIterator<OutputImageType> OutputIterator;
80 typedef itk::ImageRegionConstIterator<InputImageType> InputIterator;
82 OutputIterator outIt(outputPtr, outputRegionForThread);
83 InputIterator inIt(inputPtr, inputRegionForThread);
86 while (!outIt.IsAtEnd())
89 outIt.Set(inIt.Get());
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.