Constructor and Description |
---|
Process(Class<Algorithm> algorithmClass,
IFunction fn,
Object... parameters)
Same as
this(algorithmClass, Process.asImage(fn), parameters); |
Process(Class<Algorithm> algorithmClass,
Image<? extends RealType<?>> img,
Object... parameters)
Initialize and execute the given
Algorithm and prepare a cursor
to deliver its pixel values one by one in successive calls to eval() . |
Process(OutputAlgorithm<? extends RealType<?>> algorithm)
Execute the given
OutputAlgorithm and prepare a cursor to deliver
its pixel values one by one in successive calls to eval() . |
Modifier and Type | Method and Description |
---|---|
IFunction |
duplicate() |
double |
eval()
Evaluate this function and return a result in double floating-point precision.
|
void |
findCursors(Collection<Cursor<?>> cursors)
Put any cursors in use by this function (and any nested functions) in @param cursors.
|
Image<? extends RealType<?>> |
getResult() |
public Process(OutputAlgorithm<? extends RealType<?>> algorithm) throws Exception
OutputAlgorithm
and prepare a cursor to deliver
its pixel values one by one in successive calls to eval()
.Exception
public Process(Class<Algorithm> algorithmClass, IFunction fn, Object... parameters) throws Exception
this(algorithmClass, Process.asImage(fn), parameters);
Exception
public Process(Class<Algorithm> algorithmClass, Image<? extends RealType<?>> img, Object... parameters) throws Exception
Algorithm
and prepare a cursor
to deliver its pixel values one by one in successive calls to eval()
.
If the @param algorithmClass implements OutputAlgorithm
, then
this IFunction will iterate over the image obtained from getResult()
.
Otherwise, this IFunction iterates over the modified input image.
The Algorithm
is constructed by reflection and assumes that the
constructor accepts one Image
as first argument and then the rest of
the argument in the same order as given. Otherwise, an Exception
will
be thrown.Exception
public final double eval()
IFunction
public final void findCursors(Collection<Cursor<?>> cursors)
IFunction
findCursors
in interface IFunction
Copyright © 2015–2021 Fiji. All rights reserved.