public class MultiDimensionConvolution<T> extends Object implements Convolution<T>
Convolutions, each of which only works
for a particular dimensionality. (e.g. gauss 1d, gauss 2d, gauss 3d, ...)
MultiDimensionConvolution can be used to bundle them into one
Convolution (e.g. gauss Nd).| Constructor and Description |
|---|
MultiDimensionConvolution(IntFunction<Convolution<T>> numDimensionToConvolution)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
T |
preferredSourceType(T targetType)
What's the preferred type for the source image, when target should have
the specified type?
|
void |
process(RandomAccessible<? extends T> source,
RandomAccessibleInterval<? extends T> target)
Fills the target image, with the convolution result.
|
Interval |
requiredSourceInterval(Interval targetInterval)
Returns the required size for source image, to calculate the given target
interval.
|
void |
setExecutor(ExecutorService executor)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconcat, concatpublic MultiDimensionConvolution(IntFunction<Convolution<T>> numDimensionToConvolution)
numDimensionToConvolution - Function, when applied to a certain number (e.g. 2), it must
return a Convolution that can be applied to images of
that dimensions (e.g gauss 2d).@Deprecated public void setExecutor(ExecutorService executor)
ConvolutionExecutorService to be used for convolution.setExecutor in interface Convolution<T>public Interval requiredSourceInterval(Interval targetInterval)
ConvolutionrequiredSourceInterval in interface Convolution<T>Convolution.requiredSourceInterval(Interval)public T preferredSourceType(T targetType)
ConvolutionpreferredSourceType in interface Convolution<T>Convolution.preferredSourceType(Object)public void process(RandomAccessible<? extends T> source, RandomAccessibleInterval<? extends T> target)
Convolutionprocess in interface Convolution<T>source - Source image. It must allow pixel access in the interval
returned by requiredSourceInterval(target)target - Target image.Convolution.process(RandomAccessible, RandomAccessibleInterval)Copyright © 2015–2022 ImgLib2. All rights reserved.