Emgu CV Library Documentation
Sub Method (img2, mask)
NamespacesEmgu.CVImage<(Of <(TColor, TDepth>)>)Sub(Image<(Of <(TColor, TDepth>)>), Image<(Of <(Gray, Byte>)>))

www.emgu.com/wiki
Elementwise subtrace another image from the current image, using a mask
Declaration Syntax
C#Visual BasicVisual C++
public Image<TColor, TDepth> Sub(
	Image<TColor, TDepth> img2,
	Image<Gray, byte> mask
)
Public Function Sub ( _
	img2 As Image(Of TColor, TDepth), _
	mask As Image(Of Gray, Byte) _
) As Image(Of TColor, TDepth)
public:
Image<TColor, TDepth>^ Sub(
	Image<TColor, TDepth>^ img2, 
	Image<Gray, unsigned char>^ mask
)
Parameters
img2 (Image<(Of <(TColor, TDepth>)>))
The image to be subtraced from the current image
mask (Image<(Of <(Gray, Byte>)>))
The mask for the subtract operation
Return Value
The result of elementwise subtrating img2 from the current image, using the specific mask

Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.5.0.0 (1.5.0.0)