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.FlavorNAME| 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, setOutputops, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitops, setEnvironmentcalculate, calculate, createOutput, getIndependentInstance, run, runcomputein, setInputrunsetOutputcandidates, filterArity, opinitializepublic void compute(I input, O output)
UnaryComputerOpcompute 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 inputpublic O createOutput(I input)
UnaryOutputFactorycreateOutput 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.