I1
- type of first inputI2
- type of second inputO
- type of output (for both the op and its worker)DI1
- type of first input accepted by the worker opDI2
- type of second input accepted by the worker oppublic abstract class BHCFViaBHCF<I1 extends DI1,I2 extends DI2,O,DI1,DI2> extends AbstractBinaryHybridCF<I1,I2,O> implements DelegatingBinaryOp<I1,I2,O,DI1,DI2,O,BinaryHybridCF<DI1,DI2,O>>
BinaryHybridCF
s that delegate to
BinaryHybridCF
s.SpecialOp.Flavor
Constructor and Description |
---|
BHCFViaBHCF() |
Modifier and Type | Method and Description |
---|---|
void |
compute(I1 input1,
I2 input2,
O output)
Computes the output given two inputs.
|
O |
createOutput(I1 input1,
I2 input2)
Create an output object 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
calculate, createOutput, run
compute
run
setOutput
public O createOutput(I1 input1, I2 input2)
BinaryOutputFactory
createOutput
in interface BinaryOutputFactory<I1 extends DI1,I2 extends DI2,O>
input1
- first input which determines how to create the outputinput2
- second input which determines how to create the outputpublic 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>
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.