
public class ConvolutionCache extends FftCache<ComplexArray,RealArray>
FftCache.CacheKey| Modifier and Type | Field and Description |
|---|---|
protected static ConvolutionCache |
instance
A global instance.
|
| Modifier and Type | Method and Description |
|---|---|
ComplexArray |
convolve(ComplexArray cIm,
ComplexArray ker)
Performs convolution in the complex domain.
|
RealArray |
convolve(ComplexArray cIm,
RealArray ker)
Performs convolution in the real domain.
|
protected <A extends AbstractArray<?,ComplexArray,?,?>> |
createCacheable(A array,
int[] dims)
Creates an instance of the complex array type.
|
static ConvolutionCache |
getInstance()
Gets the global instance.
|
static RealArray |
pad(RealArray im,
int... margins)
Pads an image in an extrapolative way.
|
protected static ConvolutionCache instance
public static final ConvolutionCache getInstance()
public ComplexArray convolve(ComplexArray cIm, ComplexArray ker)
cIm - the already transformed image.ker - the kernel.public RealArray convolve(ComplexArray cIm, RealArray ker)
cIm - the already transformed image.ker - the kernel.protected <A extends AbstractArray<?,ComplexArray,?,?>> ComplexArray createCacheable(A array, int[] dims)
FftCachecreateCacheable in class FftCache<ComplexArray,RealArray>A - the query array type.array - the query key.dims - the size of the cached result.