Module org.scijava.ops.image
Package org.scijava.ops.image.logic
Class Ternary<I extends BooleanType<I>,O extends Type<O>>
- java.lang.Object
-
- org.scijava.ops.image.logic.Ternary<I,O>
-
- All Implemented Interfaces:
Computers.Arity3<I,O,O,O>,Consumers.Arity4<I,O,O,O>
public class Ternary<I extends BooleanType<I>,O extends Type<O>> extends Object implements Computers.Arity3<I,O,O,O>
An Op that works the same way as the?:operator. It sets the output to theifTrueValif the input is evaluated as true, orifFalseValotherwise.- Author:
- Leon Yang
- Implementation Note:
- op names='logic.match'
-
-
Constructor Summary
Constructors Constructor Description Ternary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompute(I input, O ifTrueVal, O ifFalseVal, O output)TODO-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.function.Computers.Arity3
accept
-
Methods inherited from interface org.scijava.function.Consumers.Arity4
andThen
-
-