public abstract class TwoOperandsAbstractFunction<T extends RealType<T>> extends org.nfunk.jep.function.PostfixMathCommand implements ImgLibFunction<T>
| Constructor and Description |
|---|
TwoOperandsAbstractFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract <R extends RealType<R>> |
evaluate(Img<R> img1,
Img<R> img2)
Evaluate this function on two ImgLib images.
|
abstract <R extends RealType<R>> |
evaluate(Img<R> img,
R alpha)
Evaluate this function on an ImgLib images and a numeric
RealType
type, right singleton expansion. |
abstract <R extends RealType<R>> |
evaluate(R alpha,
Img<R> img)
Evaluate this function on an ImgLib images and a numeric
RealType
type, left singleton expansion. |
abstract <R extends RealType<R>> |
evaluate(R t1,
R t2)
Evaluate this function on two numeric types.
|
void |
run(Stack inStack) |
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentationString, getFunctionString, toStringpublic final void run(Stack inStack) throws org.nfunk.jep.ParseException
run in interface org.nfunk.jep.function.PostfixMathCommandIrun in class org.nfunk.jep.function.PostfixMathCommandorg.nfunk.jep.ParseExceptionpublic abstract <R extends RealType<R>> float evaluate(R t1, R t2) throws org.nfunk.jep.ParseException
t1 - The first numbert2 - The second numberorg.nfunk.jep.ParseExceptionpublic abstract <R extends RealType<R>> Img<FloatType> evaluate(Img<R> img1, Img<R> img2) throws org.nfunk.jep.ParseException
Img of
FloatType is returned, so as to avoid underflow and overflow
problems on bounded types (e.g. ByeType).img1 - the first imageimg2 - the second imageorg.nfunk.jep.ParseExceptionpublic abstract <R extends RealType<R>> Img<FloatType> evaluate(Img<R> img, R alpha) throws org.nfunk.jep.ParseException
RealType
type, right singleton expansion. A new Img of FloatType
is returned, so as to avoid underflow and overflow problems on bounded
types (e.g. ByeType). This method should implement a singleton expansion
of the method evaluate(Img, Img), as meant by the implement
function.img - the imagealpha - the numeric typeorg.nfunk.jep.ParseExceptionpublic abstract <R extends RealType<R>> Img<FloatType> evaluate(R alpha, Img<R> img) throws org.nfunk.jep.ParseException
RealType
type, left singleton expansion. A new Img of FloatType is
returned, so as to avoid underflow and overflow problems on bounded types
(e.g. ByeType). This method should implement a singleton expansion of the
method evaluate(Img, Img), as meant by the implement function.img - the imagealpha - the numeric typeorg.nfunk.jep.ParseExceptionCopyright © 2015–2021 Fiji. All rights reserved.