public final class Gauss3 extends Object
| Constructor and Description |
|---|
Gauss3() |
| Modifier and Type | Method and Description |
|---|---|
static <S extends NumericType<S>,T extends NumericType<T>> |
gauss(double[] sigma,
RandomAccessible<S> source,
RandomAccessibleInterval<T> target)
Apply Gaussian convolution to source and write the result to output.
|
static <S extends NumericType<S>,T extends NumericType<T>> |
gauss(double[] sigma,
RandomAccessible<S> source,
RandomAccessibleInterval<T> target,
ExecutorService service)
Apply Gaussian convolution to source and write the result to output.
|
static <S extends NumericType<S>,T extends NumericType<T>> |
gauss(double[] sigma,
RandomAccessible<S> source,
RandomAccessibleInterval<T> target,
int numThreads)
Apply Gaussian convolution to source and write the result to output.
|
static <S extends NumericType<S>,T extends NumericType<T>> |
gauss(double sigma,
RandomAccessible<S> source,
RandomAccessibleInterval<T> target)
Apply Gaussian convolution to source and write the result to output.
|
static double[] |
halfkernel(double sigma,
int size,
boolean normalize) |
static double[][] |
halfkernels(double[] sigma) |
static int[] |
halfkernelsizes(double[] sigma) |
public static <S extends NumericType<S>,T extends NumericType<T>> void gauss(double sigma, RandomAccessible<S> source, RandomAccessibleInterval<T> target) throws IncompatibleTypeException
If the target type T is DoubleType, all calculations are done in
double precision. For all other target RealTypes float
precision is used. General NumericTypes are computed
in their own precision. The source type S and target type T are either
both RealTypes or both the same type.
S - source typeT - target typesigma - standard deviation of isotropic Gaussian.source - source image, must be sufficiently padded (e.g.
Views.extendMirrorSingle(RandomAccessibleInterval)) to
provide values for the target interval plus a border of half
the kernel size.target - target imageIncompatibleTypeException - if source and target type are not compatible (they must be
either both RealTypes or the same type).public static <S extends NumericType<S>,T extends NumericType<T>> void gauss(double[] sigma, RandomAccessible<S> source, RandomAccessibleInterval<T> target) throws IncompatibleTypeException
If the target type T is DoubleType, all calculations are done in
double precision. For all other target RealTypes float
precision is used. General NumericTypes are computed
in their own precision. The source type S and target type T are either
both RealTypes or both the same type.
Computation is multi-threaded with as many threads as processors available.
S - source typeT - target typesigma - standard deviation in every dimension.source - source image, must be sufficiently padded (e.g.
Views.extendMirrorSingle(RandomAccessibleInterval)) to
provide values for the target interval plus a border of half
the kernel size.target - target imageIncompatibleTypeException - if source and target type are not compatible (they must be
either both RealTypes or the same type).public static <S extends NumericType<S>,T extends NumericType<T>> void gauss(double[] sigma, RandomAccessible<S> source, RandomAccessibleInterval<T> target, int numThreads) throws IncompatibleTypeException
If the target type T is DoubleType, all calculations are done in
double precision. For all other target RealTypes float
precision is used. General NumericTypes are computed
in their own precision. The source type S and target type T are either
both RealTypes or both the same type.
S - source typeT - target typesigma - standard deviation in every dimension.source - source image, must be sufficiently padded (e.g.
Views.extendMirrorSingle(RandomAccessibleInterval)) to
provide values for the target interval plus a border of half
the kernel size.target - target imagenumThreads - how many threads to use for the computation.IncompatibleTypeException - if source and target type are not compatible (they must be
either both RealTypes or the same type).public static <S extends NumericType<S>,T extends NumericType<T>> void gauss(double[] sigma, RandomAccessible<S> source, RandomAccessibleInterval<T> target, ExecutorService service) throws IncompatibleTypeException
If the target type T is DoubleType, all calculations are done in
double precision. For all other target RealTypes float
precision is used. General NumericTypes are computed
in their own precision. The source type S and target type T are either
both RealTypes or both the same type.
S - source typeT - target typesigma - standard deviation in every dimension.source - source image, must be sufficiently padded (e.g.
Views.extendMirrorSingle(RandomAccessibleInterval)) to
provide values for the target interval plus a border of half
the kernel size.target - target imageservice - service providing threads for multi-threadingIncompatibleTypeException - if source and target type are not compatible (they must be
either both RealTypes or the same type).public static double[][] halfkernels(double[] sigma)
public static int[] halfkernelsizes(double[] sigma)
public static double[] halfkernel(double sigma,
int size,
boolean normalize)
Copyright © 2009–2019 ImgLib2. All rights reserved.