public final class Functions extends Object
NullaryFunctionOp
,
UnaryFunctionOp
,
BinaryFunctionOp
Modifier and Type | Method and Description |
---|---|
static <I1,I2,O> BinaryFunctionOp<I1,I2,O> |
binary(OpEnvironment ops,
Class<? extends Op> opType,
Class<O> outType,
Class<I1> in1Type,
Class<I2> in2Type,
Object... otherArgs)
Gets the best
BinaryFunctionOp implementation for the given types
and arguments, populating its inputs. |
static <I1,I2,O> BinaryFunctionOp<I1,I2,O> |
binary(OpEnvironment ops,
Class<? extends Op> opType,
Class<O> outType,
I1 in1,
I2 in2,
Object... otherArgs)
Gets the best
BinaryFunctionOp implementation for the given types
and arguments, populating its inputs. |
static <O> NullaryFunctionOp<O> |
nullary(OpEnvironment ops,
Class<? extends Op> opType,
Class<O> outType,
Object... args)
Gets the best
NullaryFunctionOp implementation for the given types
and arguments, populating its inputs. |
static <I,O> UnaryFunctionOp<I,O> |
unary(OpEnvironment ops,
Class<? extends Op> opType,
Class<O> outType,
Class<I> inType,
Object... otherArgs)
Gets the best
UnaryFunctionOp implementation for the given types
and arguments, populating its inputs. |
static <I,O> UnaryFunctionOp<I,O> |
unary(OpEnvironment ops,
Class<? extends Op> opType,
Class<O> outType,
I in,
Object... otherArgs)
Gets the best
UnaryFunctionOp implementation for the given types
and arguments, populating its inputs. |
public static <O> NullaryFunctionOp<O> nullary(OpEnvironment ops, Class<? extends Op> opType, Class<O> outType, Object... args)
NullaryFunctionOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
NullaryFunctionOp
s share this type (e.g., the type is an
interface which multiple NullaryFunctionOp
s implement),
then the best NullaryFunctionOp
implementation to use will
be selected automatically from the type and arguments.outType
- The Class
of the NullaryFunctionOp
typed
output.args
- The operation's arguments.NullaryFunctionOp
with populated inputs, ready to use.public static <I,O> UnaryFunctionOp<I,O> unary(OpEnvironment ops, Class<? extends Op> opType, Class<O> outType, Class<I> inType, Object... otherArgs)
UnaryFunctionOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
UnaryFunctionOp
s share this type (e.g., the type is an
interface which multiple UnaryFunctionOp
s implement), then
the best UnaryFunctionOp
implementation to use will be
selected automatically from the type and arguments.outType
- The Class
of the UnaryFunctionOp
typed
output.inType
- The Class
of the UnaryFunctionOp
typed input.otherArgs
- The operation's arguments, excluding the typed input
value.UnaryFunctionOp
with populated inputs, ready to use.public static <I,O> UnaryFunctionOp<I,O> unary(OpEnvironment ops, Class<? extends Op> opType, Class<O> outType, I in, Object... otherArgs)
UnaryFunctionOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
UnaryFunctionOp
s share this type (e.g., the type is an
interface which multiple UnaryFunctionOp
s implement), then
the best UnaryFunctionOp
implementation to use will be
selected automatically from the type and arguments.outType
- The Class
of the UnaryFunctionOp
typed
output.in
- The typed input.otherArgs
- The operation's arguments, excluding the typed input
values.UnaryFunctionOp
with populated inputs, ready to use.public static <I1,I2,O> BinaryFunctionOp<I1,I2,O> binary(OpEnvironment ops, Class<? extends Op> opType, Class<O> outType, Class<I1> in1Type, Class<I2> in2Type, Object... otherArgs)
BinaryFunctionOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
BinaryFunctionOp
s share this type (e.g., the type is an
interface which multiple BinaryFunctionOp
s implement),
then the best BinaryFunctionOp
implementation to use will
be selected automatically from the type and arguments.outType
- The Class
of the BinaryFunctionOp
typed
output.in1Type
- The Class
of the BinaryFunctionOp
first
typed input.in2Type
- The Class
of the BinaryFunctionOp
second
typed input.otherArgs
- The operation's arguments, excluding the typed input
values.BinaryFunctionOp
with populated inputs, ready to use.public static <I1,I2,O> BinaryFunctionOp<I1,I2,O> binary(OpEnvironment ops, Class<? extends Op> opType, Class<O> outType, I1 in1, I2 in2, Object... otherArgs)
BinaryFunctionOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
BinaryFunctionOp
s share this type (e.g., the type is an
interface which multiple BinaryFunctionOp
s implement),
then the best BinaryFunctionOp
implementation to use will
be selected automatically from the type and arguments.outType
- The Class
of the BinaryFunctionOp
typed
output.in1
- The first typed input.in2
- The second typed input.otherArgs
- The operation's arguments, excluding the typed input
values.BinaryFunctionOp
with populated inputs, ready to use.Copyright © 2014–2022 ImageJ. All rights reserved.