Arithmetic operations – Adept AdeptSight User Guide User Manual

Page 424

Advertising
background image

Arithmetic Operations

Operation

The available operations are described in greater detail under the following sections: Arith-
metic Operations,
Assignment Operations on page 426, Transform Operations on page 426,
Logical Operations on page 427, Filtering Operations on page 427, Morphological Operations
on page 434
, and Histogram Operations on page 435.

Operand

Operations that require a second operand can use either an Operand image or a constant.

Operand Image

An Operand Image is used by an operation that acts on two images. If an Oper-
and image is specified it will override the use of the constant specified for the
operation.

l

The Image Processing Tool applies logical and arithmetic operators, first
to the Input image, secondly to the Operand image.

l

The Image Processing Tool can accept unsigned 8-bit, signed 16-bit ,and
signed 32-bit images as an Operand image.

Constant

Any constant value specified for an operation will be overridden by an Operand
image that has been defined for the operation.

Output Image

The output image is the image resulting from an image processing operation.

l

The user can specify the type of output images as either unsigned 8-bit, signed 16-bit,
or signed 32-bit images.

l

AdeptSight processes other than the Image Processing Tool can only take unsigned 8-
bit images as input.

Arithmetic Operations

Arithmetic operations are performed by promoting the input values of the source pixels (from
the Input image) and the Operand values to the highest resolution of the Input Image, Oper-
and image or desired output image type. The results of the operation are converted according
to the following rules:

l

Destination pixel value = ClipMode (Result * Scale)

l

Destination pixel value is truncated as necessary

AdeptSight User's Guide, Version 3.2.x, Updated: 8/23/2012

Page 424

Advertising