Module org.scijava.ops.image
Package org.scijava.ops.image.math
Class BinaryNumericTypeMath<T extends NumericType<T>>
- java.lang.Object
-
- org.scijava.ops.image.math.BinaryNumericTypeMath<T>
-
public class BinaryNumericTypeMath<T extends NumericType<T>> extends Object
Binary Ops of themathnamespace which operate onNumericTypes. TODO: Can these be static?- Author:
- Leon Yang, Mark Hiner
-
-
Field Summary
Fields Modifier and Type Field Description Computers.Arity2<T,T,T>adderSum two numeric typesComputers.Arity2<T,T,T>multiplierMultiply two numeric typesComputers.Arity2<T,T,T>powerRaise a first numeric type to the power of a secondComputers.Arity2<T,T,T>subtracterSubtract a second numeric type from a first
-
Constructor Summary
Constructors Constructor Description BinaryNumericTypeMath()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <N extends NumericType<N>>
voiddivider(N input1, N input2, N dbzVal, N output)Divide a first numeric type by a second, with optional zero-value to use in case of zero division.
-
-
-
Field Detail
-
adder
public final Computers.Arity2<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>> adder
Sum two numeric types- Input parameters:
input1input2- Container parameters:
output- Implementation Note:
- op names='math.add', priority='100.'
-
multiplier
public final Computers.Arity2<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>> multiplier
Multiply two numeric types- Input parameters:
input1input2- Container parameters:
output- Implementation Note:
- op names='math.mul, math.multiply', priority='100.'
-
subtracter
public final Computers.Arity2<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>> subtracter
Subtract a second numeric type from a first- Input parameters:
input1input2- Container parameters:
output- Implementation Note:
- op names='math.sub, math.subtract', priority='100.'
-
power
public final Computers.Arity2<T extends NumericType<T>,T extends NumericType<T>,T extends NumericType<T>> power
Raise a first numeric type to the power of a second- Input parameters:
input1input2- Container parameters:
result- Implementation Note:
- op names='math.pow, math.power', priority='100.'
-
-
Method Detail
-
divider
public static <N extends NumericType<N>> void divider(N input1, N input2, N dbzVal, N output)
Divide a first numeric type by a second, with optional zero-value to use in case of zero division.- Parameters:
input1-input2-dbzVal-output-- Implementation Note:
- op names='math.div, math.divide', priority='100.', type=Computer
-
-