public class If<I extends BooleanType<I>,O extends Type<O>> extends AbstractUnaryHybridCF<I,O> implements Ops.Logic.Conditional
?:
operator. It sets the
output to the ifTrueVal
if the input is evaluated as true, or
ifFalseVal
otherwise.SpecialOp.Flavor
NAME
Constructor and Description |
---|
If() |
Modifier and Type | Method and Description |
---|---|
void |
compute(I input,
O output)
Computes the output given some input.
|
O |
createOutput(I input)
Create an output object given some input.
|
in, out, setInput, setOutput
ops, setEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ops, setEnvironment
calculate, calculate, createOutput, getIndependentInstance, run, run
compute
in, setInput
run
setOutput
candidates, filterArity, op
initialize
public void compute(I input, O output)
UnaryComputerOp
compute
in interface UnaryComputerOp<I extends BooleanType<I>,O extends Type<O>>
input
- Argument to the computation, which must be non-nulloutput
- Object where the computation's result will be stored, which
must be non-null and a different object than input
public O createOutput(I input)
UnaryOutputFactory
createOutput
in interface UnaryOutputFactory<I extends BooleanType<I>,O extends Type<O>>
input
- which determines how to create the outputCopyright © 2014–2022 ImageJ. All rights reserved.