#include <itkWeightedAddImageFilter.h>
Computes a weighted sum of two images pixel-wise.
This class is templated over the types of the two input images and the type of the output image. Numeric conversions (castings) are done by the C++ defaults.
The pixel type of the input 1 image must have a valid definition of the operator+ with a pixel type of the image 2. This condition is required because internally this filter will perform the operation
Additionally the type resulting from the sum will be cast to the pixel type of the output image.
The total operation over one pixel will be
The alpha parameter is set using SetAlpha.
Definition at line 117 of file itkWeightedAddImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static Pointer | New () |
![]() | |
static double | GetGlobalDefaultCoordinateTolerance () |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static void | SetGlobalDefaultDirectionTolerance (double) |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Private Member Functions | |
FunctorType & | GetFunctor () |
virtual const FunctorType & | GetFunctor () const |
Private Attributes | |
FunctorType | m_Functor {} |
Additional Inherited Members | |
![]() | |
static constexpr unsigned int | InputImage1Dimension = TInputImage1::ImageDimension |
static constexpr unsigned int | InputImage2Dimension = TInputImage2::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
![]() | |
static constexpr unsigned int | InputImageDimension |
static constexpr unsigned int | InputImageDimension |
static constexpr unsigned int | OutputImageDimension |
static constexpr unsigned int | OutputImageDimension |
![]() | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
![]() | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
![]() | |
using | InputToOutputRegionCopierType |
using | OutputToInputRegionCopierType |
![]() | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
![]() | |
template<typename TSourceObject> | |
static void | MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs) |
static constexpr float | progressFixedToFloat (uint32_t fixed) |
static uint32_t | progressFloatToFixed (float f) |
![]() | |
bool | m_DynamicMultiThreading { true } |
![]() | |
TimeStamp | m_OutputInformationMTime {} |
bool | m_Updating {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 133 of file itkWeightedAddImageFilter.h.
using itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::FunctorType |
Definition at line 129 of file itkWeightedAddImageFilter.h.
using itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 132 of file itkWeightedAddImageFilter.h.
using itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::RealType = typename FunctorType::RealType |
Definition at line 135 of file itkWeightedAddImageFilter.h.
using itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::Self = WeightedAddImageFilter |
Standard class type aliases.
Definition at line 125 of file itkWeightedAddImageFilter.h.
using itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::Superclass = BinaryGeneratorImageFilter<TInputImage1, TInputImage2, TOutputImage> |
Definition at line 126 of file itkWeightedAddImageFilter.h.
|
protecteddefault |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
inlineoverrideprotectedvirtual |
If an imaging filter needs to perform processing after the buffer has been allocated but before threads are spawned, the filter can can provide an implementation for BeforeThreadedGenerateData(). The execution flow in the default GenerateData() method will be: 1) Allocate the output buffer 2) Call BeforeThreadedGenerateData() 3) Spawn threads, calling ThreadedGenerateData() in each thread. 4) Call AfterThreadedGenerateData() Note that this flow of control is only available if a filter provides a ThreadedGenerateData() method and NOT a GenerateData() method.
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 170 of file itkWeightedAddImageFilter.h.
References GetFunctor(), and itk::BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage >::SetFunctor().
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage >.
|
inline |
Returns the current alpha value setting
Definition at line 154 of file itkWeightedAddImageFilter.h.
References GetFunctor().
|
inlineprivate |
Definition at line 178 of file itkWeightedAddImageFilter.h.
References m_Functor.
|
privatevirtual |
Referenced by BeforeThreadedGenerateData(), GetAlpha(), and SetAlpha().
|
overridevirtual |
Reimplemented from itk::BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage >.
References WeightedAddImageFilter().
|
static |
Method for creation through the object factory.
|
inline |
Set the weight for the first operand of the weighted addition
Definition at line 145 of file itkWeightedAddImageFilter.h.
References GetFunctor(), and itk::Object::Modified().
|
private |
Definition at line 183 of file itkWeightedAddImageFilter.h.
Referenced by GetFunctor().