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;
73 void ThreadedGenerateData(
const typename InputImageType::RegionType& outputRegionForThread, itk::ThreadIdType itkNotUsed(threadId))
override
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)
87 void operator=(
const Self&) =
delete;
92 #ifndef OTB_MANUAL_INSTANTIATION