public class Compute extends Object
| Constructor and Description |
|---|
Compute(IFunction operation)
Validate the {code operation}.
|
| Modifier and Type | Method and Description |
|---|---|
<O extends RealType<O>> |
cursor()
Returns a
Cursor with the same type as the first input image found. |
<O extends RealType<O>> |
cursor(O outputType) |
<O extends RealType<O>> |
cursor(O outputType,
Converter<RealType<?>,O> converter) |
<O extends RealType<O>> |
into(RandomAccessibleInterval<O> target)
Execute the computation and store the result into the
target. |
<O extends RealType<O>> |
into(RandomAccessibleInterval<O> target,
Converter<RealType<?>,O> converter)
Execute the mathematical operations and store the result into the given
RandomAccessibleInterval. |
<O extends RealType<O>> |
randomAccess()
Returns a
RandomAccess with the same type as the first input image found. |
<O extends RealType<O>> |
randomAccess(O outputType) |
<O extends RealType<O>> |
randomAccess(O outputType,
Converter<RealType<?>,O> converter) |
public Compute(IFunction operation)
operation - public <O extends RealType<O>> RandomAccessibleInterval<O> into(RandomAccessibleInterval<O> target)
target.
The computation is done using Type-based math, with the Type
of the target defining the specific math implementation and numerical
precision that will be used.target - The RandomAccessibleInterval into which to store the computation;
note its Type determines the precision of the computation and the specific
implementation of the mathematical operations.target.public <O extends RealType<O>> RandomAccessibleInterval<O> into(RandomAccessibleInterval<O> target, Converter<RealType<?>,O> converter)
RandomAccessibleInterval.target - The RandomAccessibleInterval into which to store the computation;
note its Type determines the precision of the computation and the specific
implementation of the mathematical operations.converter - The Converter that transfers all input Type to the Type
of the target; when null, will create one that uses double floating-point
precision; but note that if the Type of an input RandomAccessibleInterval
is the same as that of the target, the converter will not be used.target.public <O extends RealType<O>> RandomAccess<O> randomAccess(O outputType, Converter<RealType<?>,O> converter)
public <O extends RealType<O>> RandomAccess<O> randomAccess(O outputType)
public <O extends RealType<O>> RandomAccess<O> randomAccess()
RandomAccess with the same type as the first input image found.public <O extends RealType<O>> Cursor<O> cursor(O outputType, Converter<RealType<?>,O> converter)
Copyright © 2009–2019 ImgLib2. All rights reserved.