public class FourierConvolution<T extends RealType<T>,S extends RealType<S>> extends Object implements MultiThreaded, OutputAlgorithm<T>, Benchmark
Constructor and Description |
---|
FourierConvolution(Image<T> image,
Image<S> kernel) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
void |
close() |
static Image<FloatType> |
createGaussianKernel(ContainerFactory factory,
double[] sigmas) |
static Image<FloatType> |
createGaussianKernel(ContainerFactory factory,
double[] sigmas,
int precision) |
static Image<FloatType> |
createGaussianKernel(ContainerFactory factory,
double sigma,
int numDimensions) |
String |
getErrorMessage() |
boolean |
getExtendImageByKernelSize() |
static <T extends RealType<T>> |
getGaussianKernel(ImageFactory<T> imgFactory,
double[] sigma) |
static <T extends RealType<T>> |
getGaussianKernel(ImageFactory<T> imgFactory,
double sigma,
int numDimensions) |
Image<T> |
getImage() |
OutOfBoundsStrategyFactory<T> |
getImageOutOfBoundsStrategy() |
boolean |
getKeepImgFFT() |
Image<S> |
getKernel() |
int |
getNumThreads()
The number of threads used by the algorithm
|
long |
getProcessingTime() |
Image<T> |
getResult() |
protected void |
multiply(Image<ComplexFloatType> a,
Image<ComplexFloatType> b)
Multiply in Fourier Space
|
boolean |
process() |
boolean |
replaceImage(Image<T> img) |
boolean |
replaceKernel(Image<S> knl) |
void |
setExtendImageByKernelSize(boolean extend)
Defines if the image is extended by half the kernelsize all around its edges before computation.
|
void |
setImageOutOfBoundsStrategy(OutOfBoundsStrategyFactory<T> strategy) |
void |
setKeepImgFFT(boolean keepImgFFT)
By default, he will not do the computation in-place
|
void |
setNumThreads()
Sets the number of threads to the amount of processors available
|
void |
setNumThreads(int numThreads)
Sets the number of threads
|
public void setImageOutOfBoundsStrategy(OutOfBoundsStrategyFactory<T> strategy)
public OutOfBoundsStrategyFactory<T> getImageOutOfBoundsStrategy()
public void setExtendImageByKernelSize(boolean extend)
extend
- public boolean getExtendImageByKernelSize()
public void setKeepImgFFT(boolean keepImgFFT)
keepImgFFT
- public boolean getKeepImgFFT()
public static final Image<FloatType> createGaussianKernel(ContainerFactory factory, double sigma, int numDimensions)
public static final Image<FloatType> createGaussianKernel(ContainerFactory factory, double[] sigmas)
public static final Image<FloatType> createGaussianKernel(ContainerFactory factory, double[] sigmas, int precision)
public static final <T extends RealType<T>> Image<T> getGaussianKernel(ImageFactory<T> imgFactory, double sigma, int numDimensions)
public static final <T extends RealType<T>> Image<T> getGaussianKernel(ImageFactory<T> imgFactory, double[] sigma)
protected void multiply(Image<ComplexFloatType> a, Image<ComplexFloatType> b)
a
- b
- public long getProcessingTime()
getProcessingTime
in interface Benchmark
public void setNumThreads()
MultiThreaded
setNumThreads
in interface MultiThreaded
public void setNumThreads(int numThreads)
MultiThreaded
setNumThreads
in interface MultiThreaded
numThreads
- - number of threads to usepublic int getNumThreads()
MultiThreaded
getNumThreads
in interface MultiThreaded
public Image<T> getResult()
getResult
in interface OutputAlgorithm<T extends RealType<T>>
public boolean checkInput()
checkInput
in interface Algorithm
public void close()
public String getErrorMessage()
getErrorMessage
in interface Algorithm
Copyright © 2015–2021 Fiji. All rights reserved.