Subsections:
[Show/Hide]Arithmetic operations
Clear image
imageName clearReturns: void.
Set image
imageName set value
Returns: void.
imageName set 0 is identical to the operation imageName clear.
Dyadic operations
imageName exp |ln |log |conj |abs |invert |invertAndOffset |sqrt |sqr -> destination
These operations involve one original image, an operator and one destination image.
Calculates exponential, natural logarithm, decimal logarithm, conjugate, absolute value, inverted, square root or square of the given image. invertAndOffset inverts the image within its image range.
Example: a byte image with range 0-50, invert will result in a range from 205-255, invertAndOffset will result in a range from 0-50. If it was a float image, it would be -50-0 for invert and 0-50 for invertAndOffset.
Returns: void.
Dyadic operations and a scalar
imageName + | - | * | / |norm |clip value -> destination
These operations involve an original image, a constant to operate with, and a destination image where the result is placed. In such a case, the +, -, * and / signs are actually shortcuts to the Huygens commands addc, subc, mulc and divc respectively.
Operations are: addition, subtraction, multiplication, division, normalization and clipping, using an image and a given constant value.
For operations with two original images see the triadic operations (like max).
Returns: void.
Power
imageName pow numerator -> destination
?-scale (1.0)?.........scale factor
The power operation raises the source to a power specified by the numerator. It is also a Dyadic operation with a scalar but is treated separate since it is routed differently because of the extra (scale) option.
Returns: void.
Triadic operations
imageName1 + | - | * | *cj | / |max |min imageName2 -> destination
These operations involve two original images to operate with, and a destination image where the result is placed. For operations with an image and a constant see the dyadic operators (like norm).
When the data type of the source images is different, one of these is promoted to the highest data type of the two.
Returns: void