public static interface ImageCalculator.Operation
Modifier and Type | Field and Description |
---|---|
static ImageCalculator.Operation |
ABS_DIFF
Abs_diff operator, that computes the absolute value of the difference
of values of the two images
|
static ImageCalculator.Operation |
AND
And operator.
|
static ImageCalculator.Operation |
DIVIDES
Divides operator, that divides the values of the two images
|
static ImageCalculator.Operation |
MAX
Max operator, that computes the maximum of the values from the two images
|
static ImageCalculator.Operation |
MEAN
Mean operator, that computes the average of the values from the two images
|
static ImageCalculator.Operation |
MIN
Min operator, that computes the minimum of the values from the two images
|
static ImageCalculator.Operation |
MINUS
Minus operator, that subtracts values of the two images
|
static ImageCalculator.Operation |
OR
Or operator.
|
static ImageCalculator.Operation |
PLUS
Plus operator, that adds values of the two images
|
static ImageCalculator.Operation |
TIMES
Times operator, that multiples values of the two images
|
static ImageCalculator.Operation |
XOR
Exclusive or operator.
|
Modifier and Type | Method and Description |
---|---|
float |
applyTo(float v1,
float v2)
The method to override to make it possible to use an operation.
|
int |
applyTo(int v1,
int v2)
The method to override to make it possible to use an operation.
|
static final ImageCalculator.Operation PLUS
static final ImageCalculator.Operation MINUS
static final ImageCalculator.Operation ABS_DIFF
static final ImageCalculator.Operation TIMES
static final ImageCalculator.Operation DIVIDES
static final ImageCalculator.Operation MAX
static final ImageCalculator.Operation MIN
static final ImageCalculator.Operation MEAN
static final ImageCalculator.Operation AND
static final ImageCalculator.Operation OR
static final ImageCalculator.Operation XOR
int applyTo(int v1, int v2)
v1
- value of pixel in first imagev2
- value of pixel in second imagefloat applyTo(float v1, float v2)
v1
- value of pixel in first imagev2
- value of pixel in second imageCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.