Description

Image operator to perform arithmetic and logical operations, exposed as Image.Op

Remarks

These operators take both images and numbers as their first parameter so that the operations can be between two images or between an image and a constant. When used as the Image.Op operator, this operator uses its parent Image as both source and destination, unless a different source image is provided in the optional second parameter. If another image is passed as a parameter to one of its methods, it is used as the source of the operation, and the result is written back to its parent image.

It can also be created independently using CreateOperator. In this case the operator does not have a parent and the parent image to be used as source and destination must be supplied in the second parameter.

Members

Methods
Add

Adds 2 images or an image and a constant.

And

Performs a logical AND between 2 images or an image and a number.

Avg

Averages 2 images, an image and a number, or a list of images.

Copy

Copies an image to another, or a number to an image.

Diff

Computes the absolute value of the difference between 2 images or an image and a number.

Div

Divide 1 image by another, an image by a number, or a number by an image.

Div2

Division of an image by another using 2 correction factors.

Max

Obtains the maximum between 2 images or 1 image and a number.

Min

Obtains the minimum between 2 images or 1 image and a number.

Mult

Multiply 2 images or an image and a number.

Nand

Performs a logical NAND between 2 images or an image and a number.

Nor

Performs a logical NOR between 2 images or an image and a number.

Not

Performs a logical NOT on an image.

Or

Performs a logical OR between 2 images or an image and a number.

Sub

Subtract 1 image to another, an image to a number, or a number to an image.

Xor

Performs a logical XOR between 2 images or an image and a number.


Properties
ConversionRead-write property

Read/write property exposing the conversion method used when operand images need to be converted.

OffsetRead-write property

Read/write property exposing an offset to be added (or multiplied by) to the result of arithmetic operations.