\name{SubtractImageFilter}
\alias{SubtractImageFilter}
\title{SubtractImageFilter}
\Rdversion{1.1}
\docType{class}
\description{
Pixel-wise subtraction of two images.
SubtractImageFilter}
\details{
Subtract each pixel from image2 from its corresponding pixel in
image1:
This is done using
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.
Additionally, a constant can be subtracted from every pixel in an
image using:
The result of AddImageFilter with a negative constant is not necessarily the same as SubtractImageFilter . This would be the case when the PixelType defines an operator-() that is not the inverse of operator+()
See:
Subtract for the procedural interface
itk::SubtractImageFilter for the Doxygen on the original ITK class.
SubtractImageFilter}
%C++ includes: sitkSubtractImageFilter.h
\section{Methods}{
\describe{
\item{Image Execute(const Image &image1, const Image &image2):}{}
\item{Image Execute(const Image &image1, double constant):}{
Execute the filter with an image and a constant
}
\item{Image Execute(double constant, const Image &image2):}{}
\item{Image Execute(Image &&image1, const Image &image2):}{
Execute the filter on the input images
}
\item{Image Execute(Image &&image1, double constant):}{}
\item{std::string GetName() const:}{
Name of this class
}
\item{ SubtractImageFilter():}{
Default Constructor that takes no arguments and initializes default
parameters
}
\item{std::string ToString() const:}{
Print ourselves out
}
\item{ ~SubtractImageFilter():}{
Destructor
}
}
}
