eVision Python API
Loading...
Searching...
No Matches
eVision.EArithmeticLogicOperation Class Reference

Supported arithmetic or logic pixel-wise operators. More...

Inheritance diagram for eVision.EArithmeticLogicOperation:
Collaboration diagram for eVision.EArithmeticLogicOperation:

Static Public Attributes

int Copy = 0
 Sheer copy.
int Invert = 1
 Complement.
int Add = 2
 Saturated addition.
int Subtract = 3
 Saturated subtraction.
int Multiply = 4
 Saturated multiplication.
int Divide = 5
 Saturated division.
int Modulo = 6
 Modulo.
int ShiftLeft = 7
 Arithmetic left shift (multiplication by a power of 2).
int ShiftRight = 8
 Arithmetic right shift (division by a power of 2).
int ScaledAdd = 9
 Non saturating addition ((left + right) / 2).
int ScaledSubtract = 10
 Non saturating subtraction ((left + complemented right) / 2).
int ScaledMultiply = 11
 Non saturating multiplication (left * right / 256 in the BW8 case, and left * right / 65,536 in the BW16 one).
int ScaledDivide = 12
 Non saturating division (256 * left / right in the BW8 case, and 65,536 * left / right in the BW16 one).
int BitwiseAnd = 13
 Bitwise AND.
int BitwiseOr = 14
 Bitwise OR.
int BitwiseXor = 15
 Bitwise exclusive OR.
int LogicalAnd = 16
 Logical AND (non zero is true).
int LogicalOr = 17
 Logical OR (non zero is true).
int LogicalXor = 18
 Logical exclusive OR (non zero is true).
int Min = 19
 Minimum.
int Max = 20
 Maximum.
int SetZero = 21
 Copy the right operand where the left operand is zero.
int SetNonZero = 22
 Copy the right operand where the left operand is non zero.
int Equal = 23
 Equality comparison.
int NotEqual = 24
 Non equality comparison.
int GreaterOrEqual = 25
 "Greater or equal" comparison.
int LesserOrEqual = 26
 "Lesser or equal" comparison.
int Greater = 27
 "Greater" comparison.
int Lesser = 28
 "Lesser" comparison.
int Compare = 33
 Absolute value of the difference.
int Overlay = 34
 Overlay of one image onto a source image giving a destination image.
int BitwiseNot = 1
 Same as eVision.EArithmeticLogicOperation.Invert.
int Average = 9
 Same as eVision.EArithmeticLogicOperation.ScaledAdd.

Detailed Description

Supported arithmetic or logic pixel-wise operators.

Remarks:

(*) Not applicable for the BW1 images/ROIs.

(**) In the overlay image, black pixels (0 valued) are considered as transparent. If a C24 image is used as overlay, all pixels (but the black ones) will be copied to the destination image. If a BW8 image is used as overlay, all non-black pixels will be converted to the color defined by the OverlayColor parameter before copy to the destination image. The destination image is always a C24 image. If no source image is given (only overlay and destination), the destination image is considered as the source image.

Member Data Documentation

◆ Add

int eVision.EArithmeticLogicOperation.Add = 2
static

Saturated addition.

(*)

◆ Average

int eVision.EArithmeticLogicOperation.Average = 9
static

◆ BitwiseAnd

int eVision.EArithmeticLogicOperation.BitwiseAnd = 13
static

Bitwise AND.

◆ BitwiseNot

int eVision.EArithmeticLogicOperation.BitwiseNot = 1
static

◆ BitwiseOr

int eVision.EArithmeticLogicOperation.BitwiseOr = 14
static

Bitwise OR.

◆ BitwiseXor

int eVision.EArithmeticLogicOperation.BitwiseXor = 15
static

Bitwise exclusive OR.

◆ Compare

int eVision.EArithmeticLogicOperation.Compare = 33
static

Absolute value of the difference.

(*)

◆ Copy

int eVision.EArithmeticLogicOperation.Copy = 0
static

Sheer copy.

◆ Divide

int eVision.EArithmeticLogicOperation.Divide = 5
static

Saturated division.

(*)

◆ Equal

int eVision.EArithmeticLogicOperation.Equal = 23
static

Equality comparison.

(*)

◆ Greater

int eVision.EArithmeticLogicOperation.Greater = 27
static

"Greater" comparison.

(*)

◆ GreaterOrEqual

int eVision.EArithmeticLogicOperation.GreaterOrEqual = 25
static

"Greater or equal" comparison.

(*)

◆ Invert

int eVision.EArithmeticLogicOperation.Invert = 1
static

Complement.

(*)

◆ Lesser

int eVision.EArithmeticLogicOperation.Lesser = 28
static

"Lesser" comparison.

(*)

◆ LesserOrEqual

int eVision.EArithmeticLogicOperation.LesserOrEqual = 26
static

"Lesser or equal" comparison.

◆ LogicalAnd

int eVision.EArithmeticLogicOperation.LogicalAnd = 16
static

Logical AND (non zero is true).

(*)

◆ LogicalOr

int eVision.EArithmeticLogicOperation.LogicalOr = 17
static

Logical OR (non zero is true).

(*)

◆ LogicalXor

int eVision.EArithmeticLogicOperation.LogicalXor = 18
static

Logical exclusive OR (non zero is true).

(*)

◆ Max

int eVision.EArithmeticLogicOperation.Max = 20
static

Maximum.

(*)

◆ Min

int eVision.EArithmeticLogicOperation.Min = 19
static

Minimum.

(*)

◆ Modulo

int eVision.EArithmeticLogicOperation.Modulo = 6
static

Modulo.

(*)

◆ Multiply

int eVision.EArithmeticLogicOperation.Multiply = 4
static

Saturated multiplication.

(*)

◆ NotEqual

int eVision.EArithmeticLogicOperation.NotEqual = 24
static

Non equality comparison.

(*)

◆ Overlay

int eVision.EArithmeticLogicOperation.Overlay = 34
static

Overlay of one image onto a source image giving a destination image.

(See note at the end of the topic). (*) (**)

◆ ScaledAdd

int eVision.EArithmeticLogicOperation.ScaledAdd = 9
static

Non saturating addition ((left + right) / 2).

(*)

◆ ScaledDivide

int eVision.EArithmeticLogicOperation.ScaledDivide = 12
static

Non saturating division (256 * left / right in the BW8 case, and 65,536 * left / right in the BW16 one).

(*)

◆ ScaledMultiply

int eVision.EArithmeticLogicOperation.ScaledMultiply = 11
static

Non saturating multiplication (left * right / 256 in the BW8 case, and left * right / 65,536 in the BW16 one).

(*)

◆ ScaledSubtract

int eVision.EArithmeticLogicOperation.ScaledSubtract = 10
static

Non saturating subtraction ((left + complemented right) / 2).

(*)

◆ SetNonZero

int eVision.EArithmeticLogicOperation.SetNonZero = 22
static

Copy the right operand where the left operand is non zero.

◆ SetZero

int eVision.EArithmeticLogicOperation.SetZero = 21
static

Copy the right operand where the left operand is zero.

◆ ShiftLeft

int eVision.EArithmeticLogicOperation.ShiftLeft = 7
static

Arithmetic left shift (multiplication by a power of 2).

(*)

◆ ShiftRight

int eVision.EArithmeticLogicOperation.ShiftRight = 8
static

Arithmetic right shift (division by a power of 2).

(*)

◆ Subtract

int eVision.EArithmeticLogicOperation.Subtract = 3
static

Saturated subtraction.

(*)