ITK  5.4.0
Insight Toolkit

#include <itkPowImageFilter.h>

Detailed Description

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: