www.emgu.com/wiki Elementwise subtrace another image from the current image, using a mask

Declaration Syntax
Public Function Sub ( _
img2 As Image(Of TColor, TDepth), _
mask As Image(Of Gray, Byte) _
) As Image(Of TColor, TDepth)

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.3.0.0 (1.3.0.0)