ITK  6.0.0
Insight Toolkit
PowImageFilter< TInputImage1, TInputImage2, TOutputImage > Class Template Reference

#include <itkPowImageFilter.h>

Detailed Description

template<typename TInputImage1, typename TInputImage2 = TInputImage1, typename TOutputImage = TInputImage1>
class PowImageFilter< TInputImage1, TInputImage2, TOutputImage >

Computes the powers of 2 images.

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 output of the pow function will be cast to the pixel type of the output image.

The total operation over one pixel will be

output_pixel = static_cast< TOutput >( std::pow(static_cast<RealType>(A),static_cast<RealType>(B)) );

The pow function can be applied to two images with the following:

SetInput1( image1 );
SetInput2( image2 );

Additionally, this filter can be used to raise every pixel of an image to a power of a constant by using

SetInput1( image1 );
SetConstant2( constant );

The documentation for this class was generated from the following file: