public class DefaultXYEquation<T extends RealType<T>> extends AbstractUnaryComputerOp<DoubleBinaryOperator,IterableInterval<T>> implements DoubleBinaryEquationOp<T>
ops.image().equation(image2, (x, y) -> Math.pow(x, 2)
+ Math.pow(y, 2));
SpecialOp.Flavor
NAME
Constructor and Description |
---|
DefaultXYEquation() |
Modifier and Type | Method and Description |
---|---|
void |
compute(DoubleBinaryOperator lambda,
IterableInterval<T> output)
Computes the output given some input.
|
void |
initialize()
Initializes the object.
|
in, out, setInput, setOutput
ops, setEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, getIndependentInstance, run, run
in, setInput
run
candidates, filterArity, op
ops, setEnvironment
setOutput
public void initialize()
Initializable
initialize
in interface Initializable
public void compute(DoubleBinaryOperator lambda, IterableInterval<T> output)
UnaryComputerOp
compute
in interface UnaryComputerOp<DoubleBinaryOperator,IterableInterval<T extends RealType<T>>>
lambda
- 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 input
Copyright © 2014–2022 ImageJ. All rights reserved.