IMcOperations2Diff Method
|
|
Computes the absolute value of the difference between 2 images or an image and a number.
Namespace:
MediaCy.IQL.Operations
Assembly:
MediaCy.IQL.Operations (in MediaCy.IQL.Operations.dll) Version: 10.0.6912.0
SyntaxFunction Diff (
vOperand2 As Object,
<OptionalAttribute> vOperand1 As Object
) As McImage
Parameters
- vOperand2
- Type: SystemObject
Second operand of the operation: McImage, or number (array for color images). - vOperand1 (Optional)
- Type: SystemObject
Optional first image operand (operator applies to parent image
when parameter is omitted).
Return Value
Type:
McImageThe resulting McImage.
Implements
IMcOperationsDiff(Object, Object)
RemarksFor new applications it is recommended that you use DiffEx where the
additive offset and mcConversionMode can be passed as arguments.
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.
For floating point image types, the stored results may exceed the bounds
of the current destination McImage.RangeMin to McImage.RangeMax. These
range properties are not changed automatically.
See Also