ArithmeticSubtractAbs Method (Image, Image)

CVB.Net Documentation
Subtract the pixel values of img2 from img1 to obtain the output image.

Namespace:  Stemmer.Cvb.Foundation
Assembly:  Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax

public static Image SubtractAbs(
	Image img1,
	Image img2
)

Parameters

img1
Type: Stemmer.CvbImage
Input image 1
img2
Type: Stemmer.CvbImage
Input image 2

Return Value

Type: Image
Result image.
Exceptions

ExceptionCondition
ArgumentNullExceptionIf the input img1/img2 is null.
ObjectDisposedExceptionIf the input img1/img2 has already been disposed.
Remarks

The stored results are the absolute value (see Abs(Double)) of the difference of both pixels.

If the sizes of the two input images differ, the result image will contain the biggest rectangle common to both input images.

See Also

Reference