Description
Computes the absolute value of the difference between 2 images or an image and a number.
-
Return Type
-
A McImage object.
The resulting McImage.
-
Syntax
-
object.Diff (vOperand2, [vOperand1])
The Diff Method syntax has these parts:
|
| object | An expression evaluating to an object of type McOperations. |
| vOperand2 | Required. A Variant value. Second operand of the operation: McImage, or number (array for color images).
|
| vOperand1 | Optional. A Variant value. Optional first image operand (operator applies to parent image when parameter is omitted), or a number (an array for color images).
|
Remarks
A conversion is performed on vOperand2 so that it has the same type as the source image. The conversion rules are defined by the value of the Conversion property.
Offset is added to the result of the operation to produce the final result:
Abs( Parent image [or vOperand1] - vOperand2 + Offset )
which is stored in the parent image or vOperand1 if there is no parent.
Exceptions
The exception mceINVALIDARG (E_INVALIDARG) will be thrown if one of the parameters is invalid.