ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#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 116 of file itkWeightedAddImageFilter.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | FunctorType = Functor::WeightedAdd2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > |
using | Pointer = SmartPointer< Self > |
using | RealType = typename FunctorType::RealType |
using | Self = WeightedAddImageFilter |
using | Superclass = BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage > |
Public Types inherited from itk::BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | ConstRefFunctionType = OutputImagePixelType(const Input1ImagePixelType &, const Input2ImagePixelType &) |
using | DecoratedInput1ImagePixelType = SimpleDataObjectDecorator< Input1ImagePixelType > |
using | DecoratedInput2ImagePixelType = SimpleDataObjectDecorator< Input2ImagePixelType > |
using | FunctionType = OutputImagePixelType(*)(const Input1ImagePixelType &, const Input2ImagePixelType &) |
using | Input1ImagePixelType = typename Input1ImageType::PixelType |
using | Input1ImagePointer = typename Input1ImageType::ConstPointer |
using | Input1ImageRegionType = typename Input1ImageType::RegionType |
using | Input1ImageType = TInputImage1 |
using | Input2ImagePixelType = typename Input2ImageType::PixelType |
using | Input2ImagePointer = typename Input2ImageType::ConstPointer |
using | Input2ImageRegionType = typename Input2ImageType::RegionType |
using | Input2ImageType = TInputImage2 |
using | OutputImagePixelType = typename OutputImageType::PixelType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename OutputImageType::RegionType |
using | OutputImageType = TOutputImage |
using | Pointer = SmartPointer< Self > |
using | Self = BinaryGeneratorImageFilter |
using | Superclass = InPlaceImageFilter< TInputImage1, TOutputImage > |
using | ValueFunctionType = OutputImagePixelType(Input1ImagePixelType, Input2ImagePixelType) |
Public Types inherited from itk::InPlaceImageFilter< TInputImage1, TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage1 |
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
using | OutputImagePointer = typename Superclass::OutputImagePointer |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | OutputImageType = typename Superclass::OutputImageType |
using | Pointer = SmartPointer< Self > |
using | Self = InPlaceImageFilter |
using | Superclass = ImageToImageFilter< TInputImage1, TOutputImage > |
Public Types inherited from itk::ImageToImageFilter< TInputImage1, TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage1 |
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | Pointer = SmartPointer< Self > |
using | Self = ImageToImageFilter |
using | Superclass = ImageSource< TOutputImage > |
Public Types inherited from itk::ImageSource< TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = Superclass::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType |
using | OutputImagePixelType = typename OutputImageType::PixelType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename OutputImageType::RegionType |
using | OutputImageType = TOutputImage |
using | Pointer = SmartPointer< Self > |
using | Self = ImageSource |
using | Superclass = ProcessObject |
Public Types inherited from itk::ProcessObject | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = DataObject::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArray = std::vector< DataObjectPointer > |
using | DataObjectPointerArraySizeType = DataObjectPointerArray::size_type |
using | MultiThreaderType = MultiThreaderBase |
using | NameArray = std::vector< DataObjectIdentifierType > |
using | Pointer = SmartPointer< Self > |
using | Self = ProcessObject |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Private Member Functions | |
virtual const FunctorType & | GetFunctor () const |
FunctorType & | GetFunctor () |
Private Attributes | |
FunctorType | m_Functor |
Additional Inherited Members | |
Static Public Attributes inherited from itk::BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage > | |
static constexpr unsigned int | InputImage1Dimension = TInputImage1::ImageDimension |
static constexpr unsigned int | InputImage2Dimension = TInputImage2::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::InPlaceImageFilter< TInputImage1, TOutputImage > | |
static constexpr unsigned int | InputImageDimension |
static constexpr unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage1, TOutputImage > | |
static constexpr unsigned int | InputImageDimension |
static constexpr unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Protected Types inherited from itk::ImageToImageFilter< TInputImage1, TOutputImage > | |
using | InputToOutputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::OutputImageDimension, Self::InputImageDimension > |
using | OutputToInputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::InputImageDimension, Self::OutputImageDimension > |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Protected Attributes inherited from itk::ImageSource< TOutputImage > | |
bool | m_DynamicMultiThreading |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
using itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::ConstPointer = SmartPointer< const Self > |
Definition at line 134 of file itkWeightedAddImageFilter.h.
using itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::FunctorType = Functor::WeightedAdd2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > |
Definition at line 131 of file itkWeightedAddImageFilter.h.
using itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::Pointer = SmartPointer< Self > |
Definition at line 133 of file itkWeightedAddImageFilter.h.
using itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::RealType = typename FunctorType::RealType |
Definition at line 136 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 |
|
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 176 of file itkWeightedAddImageFilter.h.
References itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::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 itk::Functor::WeightedAdd2< TInput1, TInput2, TOutput >::GetAlpha(), and itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::GetFunctor().
|
privatevirtual |
|
inlineprivate |
Definition at line 183 of file itkWeightedAddImageFilter.h.
References itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::m_Functor.
|
virtual |
Runtime information support.
Reimplemented from itk::BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage >.
|
static |
Method for creation through the object factory.
|
inline |
Set the weight for the first operand of the weighted addition
Definition at line 146 of file itkWeightedAddImageFilter.h.
References itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::GetFunctor(), itk::Object::Modified(), and itk::Functor::WeightedAdd2< TInput1, TInput2, TOutput >::SetAlpha().
|
private |
Definition at line 185 of file itkWeightedAddImageFilter.h.
Referenced by itk::WeightedAddImageFilter< TInputImage1, TInputImage2, TOutputImage >::GetFunctor().