public static class IIToIIOutputII.Or<T extends BooleanType<T>> extends AbstractBinaryHybridCFI<IterableInterval<T>,IterableInterval<T>> implements Ops.Logic.Or, Contingent
SpecialOp.Flavor
NAME
Constructor and Description |
---|
Or() |
Modifier and Type | Method and Description |
---|---|
void |
compute(IterableInterval<T> input1,
IterableInterval<T> input2,
IterableInterval<T> output)
Computes the output given two inputs.
|
boolean |
conforms()
True if the contingency holds; i.e., the current circumstances conform to
the contingency's requirements.
|
IterableInterval<T> |
createOutput(IterableInterval<T> input1,
IterableInterval<T> input2)
Create an output object given two inputs.
|
void |
initialize()
Initializes the object.
|
void |
mutate1(IterableInterval<T> arg,
IterableInterval<T> in)
Mutates the first argument in-place.
|
void |
mutate2(IterableInterval<T> in,
IterableInterval<T> arg)
Mutates the second argument in-place.
|
in1, in2, out, setInput1, setInput2, setOutput
ops, setEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ops, setEnvironment
getIndependentInstance, run, run
mutate
calculate, calculate, createOutput
run, run
calculate, createOutput
compute
compute
setOutput
in, in1
in2, setInput, setInput1, setInput2
candidates, filterArity, op
public void initialize()
Initializable
initialize
in interface Initializable
public boolean conforms()
Contingent
conforms
in interface Contingent
public IterableInterval<T> createOutput(IterableInterval<T> input1, IterableInterval<T> input2)
BinaryOutputFactory
createOutput
in interface BinaryOutputFactory<IterableInterval<T extends BooleanType<T>>,IterableInterval<T extends BooleanType<T>>,IterableInterval<T extends BooleanType<T>>>
input1
- first input which determines how to create the outputinput2
- second input which determines how to create the outputpublic void compute(IterableInterval<T> input1, IterableInterval<T> input2, IterableInterval<T> output)
BinaryComputerOp
compute
in interface BinaryComputerOp<IterableInterval<T extends BooleanType<T>>,IterableInterval<T extends BooleanType<T>>,IterableInterval<T extends BooleanType<T>>>
input1
- first argument to the computation, which
must be non-nullinput2
- second 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
input1
and input2
public void mutate1(IterableInterval<T> arg, IterableInterval<T> in)
BinaryInplace1Op
mutate1
in interface BinaryInplace1Op<IterableInterval<T extends BooleanType<T>>,IterableInterval<T extends BooleanType<T>>,IterableInterval<T extends BooleanType<T>>>
arg
- First argument of the BinaryInplace1Op
, which
will be mutated.in
- Second argument of the BinaryInplace1Op
, which will
not be mutated.public void mutate2(IterableInterval<T> in, IterableInterval<T> arg)
BinaryInplaceOp
mutate2
in interface BinaryInplaceOp<IterableInterval<T extends BooleanType<T>>,IterableInterval<T extends BooleanType<T>>>
in
- First argument of the BinaryInplaceOp
, which will
not be mutated.arg
- Second argument of the BinaryInplaceOp
, which
will be mutated.Copyright © 2014–2022 ImageJ. All rights reserved.