Elementwise subtract another image from the current image

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static Image<TColor, TDepth> operator -(
	Image<TColor, TDepth> image1,
	Image<TColor, TDepth> image2
)
Public Shared Operator - ( _
	image1 As Image(Of TColor, TDepth), _
	image2 As Image(Of TColor, TDepth) _
) As Image(Of TColor, TDepth)
public:
static Image<TColor, TDepth>^ operator -(
	Image<TColor, TDepth>^ image1, 
	Image<TColor, TDepth>^ image2
)

Parameters

image1
Image<(Of <(<'TColor, TDepth>)>)>
The image to be subtracted
image2
Image<(Of <(<'TColor, TDepth>)>)>
The second image to be subtracted from image1

Return Value

The result of elementwise subtracting img2 from image1

See Also