18 #ifndef itkDivideImageFilter_h
19 #define itkDivideImageFilter_h
46 template<
typename TInputImage1,
typename TInputImage2,
typename TOutputImage >
70 typename TInputImage2::PixelType,
71 typename TOutputImage::PixelType >;
82 #ifdef ITK_USE_CONCEPT_CHECKING
88 typename TInputImage2::PixelType,
89 typename TOutputImage::PixelType > ) );
96 #if !defined( ITK_WRAPPING_PARSER )
105 Superclass::VerifyPreconditions();
108 =
dynamic_cast< const typename Superclass::DecoratedInput2ImagePixelType *
>( this->
ProcessObject::GetInput(1) );
109 if( input !=
nullptr &&
itk::Math::AlmostEquals(input->Get(), itk::NumericTraits< typename TInputImage2::PixelType >::ZeroValue()) )
111 itkGenericExceptionMacro(<<
"The constant value used as denominator should not be set to zero");
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
Implements pixel-wise generic operation of two images, or of an image and a constant.
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
void VerifyPreconditions() ITKv5_CONST override
Verifies that the process object has been configured correctly, that all required inputs are set...
bool AlmostEquals(T1 x1, T2 x2)
Provide consistent equality checks between values of potentially different scalar or complex types...
#define itkConceptMacro(name, concept)
Pixel-wise division of two images.