Class MulFunction<I>
- java.lang.Object
-
- science.aist.imaging.core.imageprocessing.operator.AbstractOperator<I>
-
- science.aist.imaging.core.imageprocessing.operator.MulFunction<I>
-
- All Implemented Interfaces:
BiFunction<ImageWrapper<I>,ImageWrapper<I>,ImageWrapper<I>>
,BinaryOperator<ImageWrapper<I>>
public class MulFunction<I> extends AbstractOperator<I>
Functions that multiplies to images with an optional weight
res[x,y,c] = scalar * image1[x,y,c] * image2[x,y,c]
- 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 MulFunction()
-
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
-
-