Module org.scijava.ops.image
Package org.scijava.ops.image.math
Class BinaryRealTypeMath<I1 extends RealType<I1>,I2 extends RealType<I2>,O extends RealType<O>>
- java.lang.Object
-
- org.scijava.ops.image.math.BinaryRealTypeMath<I1,I2,O>
-
-
Field Summary
Fields Modifier and Type Field Description Computers.Arity2<I1,I2,O>adderSets the real component of an output real number to the addition of the real components of two input real numbers.Computers.Arity2<I1,I2,O>anderSets the real component of an output real number to the logical AND of the real component of two input real numbers.Computers.Arity2<I1,I2,O>moderSets the real component of an output real number to the real component of a first input real number modulus the real component of a second input numberComputers.Arity2<I1,I2,O>multiplierSets the real component of an output real number to the multiplication of the real component of two input real numbers.Computers.Arity2<I1,I2,O>orerSets the real component of an output real number to the logical OR of the real component of two input real numbers.Computers.Arity2<I1,I2,O>powerSets the real component of an output real number to the real component of a first input real number raised to the power of the real component of a second input numberComputers.Arity2<I1,I2,O>subtracterSets the real component of an output real number to the difference of the real component of two input real numbers.Computers.Arity2<I1,I2,O>xorerSets the real component of an output real number to the logical XOR of the real component of two input real numbers.
-
Constructor Summary
Constructors Constructor Description BinaryRealTypeMath()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T1 extends RealType<T1>,T2 extends RealType<T2>,O extends RealType<O>>
voiddivider(T1 input1, T2 input2, Double dbzVal, O output)Sets the real component of an output real number to the division of the real component of two input real numbers, with optional zero-value to use in case of zero division.
-
-
-
Field Detail
-
adder
public final Computers.Arity2<I1 extends RealType<I1>,I2 extends RealType<I2>,O extends RealType<O>> adder
Sets the real component of an output real number to the addition of the real components of two input real numbers.- Input parameters:
input1input2- Container parameters:
sum- Implementation Note:
- op names='math.add'
-
ander
public final Computers.Arity2<I1 extends RealType<I1>,I2 extends RealType<I2>,O extends RealType<O>> ander
Sets the real component of an output real number to the logical AND of the real component of two input real numbers.- Input parameters:
input1input2- Container parameters:
result- Implementation Note:
- op names='math.and'
-
multiplier
public final Computers.Arity2<I1 extends RealType<I1>,I2 extends RealType<I2>,O extends RealType<O>> multiplier
Sets the real component of an output real number to the multiplication of the real component of two input real numbers.- Input parameters:
input1input2- Container parameters:
result- Implementation Note:
- op names='math.mul, math.multiply'
-
orer
public final Computers.Arity2<I1 extends RealType<I1>,I2 extends RealType<I2>,O extends RealType<O>> orer
Sets the real component of an output real number to the logical OR of the real component of two input real numbers.- Input parameters:
input1input2- Container parameters:
result- Implementation Note:
- op names='math.or'
-
subtracter
public final Computers.Arity2<I1 extends RealType<I1>,I2 extends RealType<I2>,O extends RealType<O>> subtracter
Sets the real component of an output real number to the difference of the real component of two input real numbers.- Input parameters:
input1input2- Container parameters:
result- Implementation Note:
- op names='math.sub, math.subtract'
-
xorer
public final Computers.Arity2<I1 extends RealType<I1>,I2 extends RealType<I2>,O extends RealType<O>> xorer
Sets the real component of an output real number to the logical XOR of the real component of two input real numbers.- Input parameters:
input1input2- Container parameters:
result- Implementation Note:
- op names='math.xor'
-
power
public final Computers.Arity2<I1 extends RealType<I1>,I2 extends RealType<I2>,O extends RealType<O>> power
Sets the real component of an output real number to the real component of a first input real number raised to the power of the real component of a second input number- Input parameters:
input1input2- Container parameters:
result- Implementation Note:
- op names='math.pow, math.power'
-
moder
public final Computers.Arity2<I1 extends RealType<I1>,I2 extends RealType<I2>,O extends RealType<O>> moder
Sets the real component of an output real number to the real component of a first input real number modulus the real component of a second input number- Input parameters:
input1input2- Container parameters:
result- Implementation Note:
- op names='math.modulus, math.mod, math.remainder'
-
-
Method Detail
-
divider
public static <T1 extends RealType<T1>,T2 extends RealType<T2>,O extends RealType<O>> void divider(T1 input1, T2 input2, Double dbzVal, O output)
Sets the real component of an output real number to the division of the real component of two input real numbers, with optional zero-value to use in case of zero division.- Parameters:
input1-input2-dbzVal-output-- Implementation Note:
- op names='math.div, math.divide', type=Computer
-
-