public class LineConvolution<T> extends AbstractMultiThreadedConvolution<T>
LineConvolverFactory on the given images.| Constructor and Description |
|---|
LineConvolution(LineConvolverFactory<? super T> factory,
int direction) |
| Modifier and Type | Method and Description |
|---|---|
static void |
forEachIntervalElementInParallel(ExecutorService service,
int numTasks,
Interval interval,
Supplier<Consumer<Localizable>> actionFactory)
forEachIntervalElementInParallel(ExecutorService, int, Interval, Supplier)
executes a given action for each position in a given interval. |
T |
preferredSourceType(T targetType)
What's the preferred type for the source image, when target should have
the specified type?
|
protected void |
process(RandomAccessible<? extends T> source,
RandomAccessibleInterval<? extends T> target,
ExecutorService executorService,
int numThreads) |
Interval |
requiredSourceInterval(Interval targetInterval)
Returns the required size for source image, to calculate the given target
interval.
|
process, setExecutorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconcat, concatpublic LineConvolution(LineConvolverFactory<? super T> factory, int direction)
public Interval requiredSourceInterval(Interval targetInterval)
Convolutionpublic T preferredSourceType(T targetType)
Convolutionprotected void process(RandomAccessible<? extends T> source, RandomAccessibleInterval<? extends T> target, ExecutorService executorService, int numThreads)
process in class AbstractMultiThreadedConvolution<T>public static void forEachIntervalElementInParallel(ExecutorService service, int numTasks, Interval interval, Supplier<Consumer<Localizable>> actionFactory)
forEachIntervalElementInParallel(ExecutorService, int, Interval, Supplier)
executes a given action for each position in a given interval. Therefor
it starts the specified number of tasks. Each tasks calls the action
factory once, to get an instance of the action that should be executed.
The action is then called multiple times by the task.service - ExecutorService used to create the tasks.numTasks - number of tasks to use.interval - interval to iterate over.actionFactory - factory that returns the action to be executed.Copyright © 2009–2019 ImgLib2. All rights reserved.