21 #ifndef otbBinaryFunctorNeighborhoodImageFilter_h
22 #define otbBinaryFunctorNeighborhoodImageFilter_h
24 #include "itkImageToImageFilter.h"
25 #include "itkImageRegionIteratorWithIndex.h"
26 #include "itkConstNeighborhoodIterator.h"
46 template <
class TInputImage1,
class TInputImage2,
class TOutputImage,
class TFunction>
52 typedef itk::ImageToImageFilter<TInputImage1, TOutputImage>
Superclass;
82 void SetInput1(
const TInputImage1* image1);
85 void SetInput2(
const TInputImage2* image2);
88 const TInputImage1* GetInput1();
89 const TInputImage2* GetInput2();
117 typedef typename NeighborhoodIteratorType1::RadiusType
RadiusType1;
118 typedef typename NeighborhoodIteratorType2::RadiusType
RadiusType2;
127 m_Radius.Fill(radius);
146 void DynamicThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread)
override;
151 void GenerateInputRequestedRegion(
void)
override;
164 #ifndef OTB_MANUAL_INSTANTIATION
Implements pixel-wise generic operation on two images.
Implements neighborhood-wise generic operation of two images.
~BinaryFunctorNeighborhoodImageFilter() override
Input1ImageType::Pointer Input1ImagePointer
Input2ImageType::ConstPointer Input2ImageConstPointer
itk::SmartPointer< const Self > ConstPointer
Input1ImageType::RegionType Input1ImageRegionType
itk::ConstNeighborhoodIterator< TInputImage2 > NeighborhoodIteratorType2
FunctorType & GetFunctor()
TOutputImage OutputImageType
TInputImage2 Input2ImageType
BinaryFunctorNeighborhoodImageFilter(const Self &)=delete
itk::SmartPointer< Self > Pointer
TInputImage1 Input1ImageType
void SetRadius(unsigned int radius)
Input1ImageType::PixelType Input1ImagePixelType
BinaryFunctorNeighborhoodImageFilter Self
itk::ConstNeighborhoodIterator< TInputImage1 > NeighborhoodIteratorType1
OutputImageType::Pointer OutputImagePointer
itk::ProcessObject ProcessObjectType
NeighborhoodIteratorType1::RadiusType RadiusType1
void operator=(const Self &)=delete
OutputImageType::PixelType OutputImagePixelType
Input1ImageType::ConstPointer Input1ImageConstPointer
Input2ImageType::PixelType Input2ImagePixelType
OutputImageType::RegionType OutputImageRegionType
Input2ImageType::RegionType Input2ImageRegionType
itk::ImageToImageFilter< TInputImage1, TOutputImage > Superclass
NeighborhoodIteratorType2::RadiusType RadiusType2
itk::Size< Input1ImageType::ImageDimension > RadiusSizeType
void SetFunctor(const FunctorType &functor)
Input2ImageType::Pointer Input2ImagePointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.