public static final class ConvolverNativeTypeBuffered.ConvolverFactoryNativeTypeBuffered<T extends NumericType<T> & NativeType<T>> extends Object implements ConvolverFactory<T,T>
Constructor and Description |
---|
ConvolverFactoryNativeTypeBuffered(T type) |
Modifier and Type | Method and Description |
---|---|
Runnable |
create(double[] halfkernel,
RandomAccess<T> in,
RandomAccess<T> out,
int d,
long lineLength)
Create a 1-dimensional line convolver.
|
public ConvolverFactoryNativeTypeBuffered(T type)
public Runnable create(double[] halfkernel, RandomAccess<T> in, RandomAccess<T> out, int d, long lineLength)
ConvolverFactory
RandomAccess
. They are moved forwards a long a line in
dimension d, reading source values from the input and writing convolved
values to the output. The line convolver is a Runnable. The idea is to
put the input and an output RandomAccess
to the start of a line,
then call Runnable.run()
to do the convolution. Then the input
and an output RandomAccess
are moved to the next line,
Runnable.run()
is called again, and so on.create
in interface ConvolverFactory<T extends NumericType<T> & NativeType<T>,T extends NumericType<T> & NativeType<T>>
halfkernel
- the upper half (starting at the center pixel) of the symmetric
convolution kernel.in
- RandomAccess
on the source values.out
- RandomAccess
on the target (convolved) values.d
- dimension in which to convolve.lineLength
- how many convolved values to produce in one
Runnable.run()
.Copyright © 2015–2022 ImgLib2. All rights reserved.