21 #ifndef otbInPlacePassFilter_h
22 #define otbInPlacePassFilter_h
24 #include "itkInPlaceImageFilter.h"
26 #include "itkImageRegionIterator.h"
45 template <
class TInputImage>
46 class ITK_EXPORT
InPlacePassFilter :
public itk::InPlaceImageFilter<TInputImage, TInputImage>
53 typedef itk::InPlaceImageFilter<InputImageType, InputImageType>
Superclass;
75 typename InputImageType::ConstPointer input(this->GetInput());
76 typename InputImageType::Pointer output(this->GetOutput());
77 itk::ImageRegionConstIterator<InputImageType> it(input, outputRegionForThread);
78 itk::ImageRegionIterator<InputImageType> oit(output, outputRegionForThread);
79 for (oit.GoToBegin(), it.GoToBegin(); !oit.IsAtEnd() || !it.IsAtEnd(); ++it, ++oit)
92 #ifndef OTB_MANUAL_INSTANTIATION
This filter has the only purpose to recall regions.
void DynamicThreadedGenerateData(const typename InputImageType::RegionType &outputRegionForThread) override
itk::SmartPointer< const Self > ConstPointer
void operator=(const Self &)=delete
itk::SmartPointer< Self > Pointer
InPlacePassFilter(const Self &)=delete
~InPlacePassFilter() override
TInputImage InputImageType
itk::InPlaceImageFilter< InputImageType, InputImageType > Superclass
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.