Class AddFunction<I>
- java.lang.Object
-
- science.aist.imaging.core.imageprocessing.operator.AbstractOperator<I>
-
- science.aist.imaging.core.imageprocessing.operator.AddFunction<I>
-
- All Implemented Interfaces:
BiFunction<ImageWrapper<I>,ImageWrapper<I>,ImageWrapper<I>>
,BinaryOperator<ImageWrapper<I>>
public class AddFunction<I> extends AbstractOperator<I>
Function that adds to images in an optional weighted way
res[x,y,c] = image1[x,y,c] * alpha + image2[x,y,c] * beta + gamma
- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Field Summary
-
Fields inherited from class science.aist.imaging.core.imageprocessing.operator.AbstractOperator
provider
-
-
Constructor Summary
Constructors Constructor Description AddFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
execute(double val1, double val2)
Method that calculates the new value based on the two source values-
Methods inherited from class science.aist.imaging.core.imageprocessing.operator.AbstractOperator
apply, apply, apply, apply, checkMask, prepareResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
execute
protected double execute(double val1, double val2)
Description copied from class:AbstractOperator
Method that calculates the new value based on the two source values- Specified by:
execute
in classAbstractOperator<I>
- Parameters:
val1
- source value of image 1val2
- source value of image 2- Returns:
- combined values
-
-