I - type of first + second inputO - type of outputpublic interface BinaryHybridCI<I,O extends I> extends BinaryHybridCI1<I,I,O>, BinaryInplaceOp<I,O>
BinaryComputerOp or
BinaryInplaceOp.
To populate a preallocated output object, call
BinaryComputerOp.compute(I1, I2, O); to compute inplace, call
BinaryInplace1Op.mutate1(O, I2) or BinaryInplaceOp.mutate2(I, O). To do any
of these things as appropriate, call run(Object, Object, Object).
BinaryHybridCI1SpecialOp.Flavor| Modifier and Type | Method and Description |
|---|---|
default BinaryHybridCI<I,O> |
getIndependentInstance()
Gets a reference to an instance of this object which can be used
simultaneously from a second thread while this instance is being used from
"its" thread.
|
default O |
run(I input1,
I input2,
O output)
Executes the operation in a type-safe but flexible way.
|
mutate, runcompute, computerun, runcomputesetOutputmutate2in, in1, mutate1in2, setInput, setInput1, setInput2candidates, filterArity, opops, setEnvironmentinitializedefault O run(I input1, I input2, O output)
BinaryOpThe exact behavior depends on the type of special op.
run in interface BinaryComputerOp<I,I,O extends I>run in interface BinaryHybridCI1<I,I,O extends I>run in interface BinaryInplace1Op<I,I,O extends I>run in interface BinaryInplaceOp<I,O extends I>run in interface BinaryOp<I,I,O extends I>input1 - first argument to the operationinput2 - second argument to the operationoutput - reference where the operation's result will be storedBinaryComputerOp.run(Object, Object, Object),
BinaryFunctionOp.run(Object, Object, Object),
BinaryInplaceOp.run(Object, Object, Object),
BinaryHybridCF.run(Object, Object, Object)default BinaryHybridCI<I,O> getIndependentInstance()
ThreadableIt is expected that subclasses which override this method will narrow the return type appropriately. We do not enforce this at compile time via recursive generics due to their complexity: they introduce a host of typing difficulties.
getIndependentInstance in interface BinaryComputerOp<I,I,O extends I>getIndependentInstance in interface BinaryHybridCI1<I,I,O extends I>getIndependentInstance in interface BinaryInplace1Op<I,I,O extends I>getIndependentInstance in interface BinaryInplaceOp<I,O extends I>getIndependentInstance in interface BinaryOp<I,I,O extends I>getIndependentInstance in interface NullaryComputerOp<O extends I>getIndependentInstance in interface NullaryOp<O extends I>getIndependentInstance in interface SpecialOpgetIndependentInstance in interface ThreadablegetIndependentInstance in interface UnaryComputerOp<I,O extends I>getIndependentInstance in interface UnaryHybridCI<I,O extends I>getIndependentInstance in interface UnaryInplaceOp<I,O extends I>getIndependentInstance in interface UnaryOp<I,O extends I>Copyright © 2014–2022 ImageJ. All rights reserved.