public class FastGaussConvolverRealType extends Object implements LineConvolverFactory<RealType<?>>
LineConvolverFactory
that uses
FastGaussCalculator
to calculate a fast Gauss transform.Modifier and Type | Class and Description |
---|---|
static class |
FastGaussConvolverRealType.MyConvolver |
Constructor and Description |
---|
FastGaussConvolverRealType(double sigma) |
Modifier and Type | Method and Description |
---|---|
long |
getBorderAfter()
When doing a convolution, a neighborhood of a pixel needs to be known.
|
long |
getBorderBefore()
When doing a convolution, a neighborhood of a pixel needs to be known.
|
Runnable |
getConvolver(RandomAccess<? extends RealType<?>> in,
RandomAccess<? extends RealType<?>> out,
int d,
long lineLength)
The
Runnable returned by this method is responsible for
convolving on line of the image. |
RealType<?> |
preferredSourceType(RealType<?> targetType) |
public long getBorderBefore()
LineConvolverFactory
getBorderBefore
in interface LineConvolverFactory<RealType<?>>
public long getBorderAfter()
LineConvolverFactory
getBorderAfter
in interface LineConvolverFactory<RealType<?>>
public Runnable getConvolver(RandomAccess<? extends RealType<?>> in, RandomAccess<? extends RealType<?>> out, int d, long lineLength)
LineConvolverFactory
Runnable
returned by this method is responsible for
convolving on line of the image. But it will be reused. After the first
line is convolved. The RandomAccess
es are moved to the start of
the next line. And the Runnable is executed again.
LineConvolution
works with multiple threads.
LineConvolverFactory.getConvolver(net.imglib2.RandomAccess<? extends T>, net.imglib2.RandomAccess<? extends T>, int, long)
is called once per thread, and the returned
Runnable
is exclusively used in one thread.getConvolver
in interface LineConvolverFactory<RealType<?>>
in
- RandomAccess
, that is positioned on the start of the
line of the input image.out
- RandomAccess
, that is positioned on the start of the
line of the output image.d
- Dimension in which the line should go.lineLength
- Length of the output line in pixels.Runnable
that will read a line of the input image,
convolve it, and write the result to the output image. (Input
line length should be getBorderBefore() + lineLength +
getBorderAfter())public RealType<?> preferredSourceType(RealType<?> targetType)
preferredSourceType
in interface LineConvolverFactory<RealType<?>>
Copyright © 2015–2022 ImgLib2. All rights reserved.