I1
- type of first inputI2
- type of second inputO
- type of outputDI1
- type of first input accepted by the worker opDI2
- type of second input accepted by the worker opDO
- type of output accepted by the worker oppublic abstract class BHCFViaBC<I1 extends DI1,I2 extends DI2,O extends DO,DI1,DI2,DO> extends AbstractBinaryHybridCF<I1,I2,O> implements DelegatingBinaryOp<I1,I2,O,DI1,DI2,DO,BinaryComputerOp<DI1,DI2,DO>>
BinaryHybridCF
s that delegate to
BinaryComputerOp
s.
Implementing classes will need to provide the missing
BinaryOutputFactory.createOutput(I1, I2)
method implementation.
SpecialOp.Flavor
Constructor and Description |
---|
BHCFViaBC() |
Modifier and Type | Method and Description |
---|---|
void |
compute(I1 input1,
I2 input2,
O output)
Computes the output given two inputs.
|
void |
initialize()
Initializes the object.
|
in1, in2, out, setInput1, setInput2, setOutput
ops, setEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createWorker
getArity, getIndependentInstance, run, run
candidates, filterArity, op
ops, setEnvironment
in, in1, in2, setInput, setInput1, setInput2
calculate, calculate, createOutput, getIndependentInstance, run, run
compute
createOutput
calculate, createOutput, run
compute
run
setOutput
public void initialize()
Initializable
initialize
in interface Initializable
public void compute(I1 input1, I2 input2, O output)
BinaryComputerOp
compute
in interface BinaryComputerOp<I1 extends DI1,I2 extends DI2,O extends DO>
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
Copyright © 2014–2022 ImageJ. All rights reserved.