Implements an operator for pixel-wise averaging of two images. More...
#include <itkNaryMeanImageFilter.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef NaryMeanImageFilter | Self |
Standard class typedefs. | |
typedef NaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Mean< typename TInputImage::PixelType, typename TInputImage::PixelType > > | Superclass |
Public Member Functions | |
itkNewMacro (Self) | |
Method for creation through the object factory. | |
itkTypeMacro (NaryMeanImageFilter, NaryFunctorImageFilter) | |
Runtime information support. | |
Implements an operator for pixel-wise averaging of two images.
This class is parametrized 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 defintion of the operator+ with a pixel type of the image 2. This condition is required because internally this filter will perform the operation
pixel_from_image_1 + pixel_from_image_2
Additionally the type resulting from the sum, will be cast to the pixel type of the output image.