public class DefaultEquation<T extends RealType<T>> extends AbstractUnaryHybridCF<String,IterableInterval<T>> implements EquationOp<T>
The equation is evaluated using Javascript. The image's position coordinates
are available to the equation via the p array; e.g.:
Math.cos(0.1*p[0]) + Math.sin(0.1*p[1]).
Note that this op is rather slow; it is intended mainly for demonstration purposes, and to easily generate small images for testing Ops workflows.
SpecialOp.FlavorNAME| Constructor and Description |
|---|
DefaultEquation() |
| Modifier and Type | Method and Description |
|---|---|
void |
compute(String input,
IterableInterval<T> output)
Computes the output given some input.
|
IterableInterval<T> |
createOutput(String input)
Create an output object given some input.
|
in, out, setInput, setOutputops, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, getIndependentInstance, run, runin, setInputruncandidates, filterArity, opops, setEnvironmentinitializesetOutputcalculate, calculate, createOutput, getIndependentInstance, run, runrunpublic void compute(String input, IterableInterval<T> output)
UnaryComputerOpcompute in interface UnaryComputerOp<String,IterableInterval<T extends RealType<T>>>input - 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 inputpublic IterableInterval<T> createOutput(String input)
UnaryOutputFactorycreateOutput in interface UnaryOutputFactory<String,IterableInterval<T extends RealType<T>>>input - which determines how to create the outputCopyright © 2014–2022 ImageJ. All rights reserved.