public class CUDASeparableConvolutionFunctions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CUDASeparableConvolutionFunctions.OutOfBounds |
Constructor and Description |
---|
CUDASeparableConvolutionFunctions(CUDASeparableConvolution cuda,
int cudaDeviceId) |
Modifier and Type | Method and Description |
---|---|
boolean |
gauss(float[] img,
int[] dim,
double sigma)
Compute Gaussian convolution with and extend-border-pixels outofbounds strategy
|
boolean |
gauss(float[] img,
int[] dim,
double[] sigma)
Compute Gaussian convolution with and extend-border-pixels outofbounds strategy
|
boolean |
gauss(float[] img,
int[] dim,
double[] sigma,
CUDASeparableConvolutionFunctions.OutOfBounds oobs,
float oobsValue)
Compute Gaussian convolution
|
static boolean |
gauss(float[] img,
int[] dim,
double[] sigma,
CUDASeparableConvolutionFunctions.OutOfBounds oobs,
float oobsValue,
CUDASeparableConvolution cuda,
int cudaDeviceId)
Compute Gaussian convolution
|
boolean |
gauss(float[] img,
int[] dim,
double sigma,
CUDASeparableConvolutionFunctions.OutOfBounds oobs,
float oobsValue)
Compute Gaussian convolution
|
static boolean |
gauss(float[] img,
int[] dim,
double sigma,
CUDASeparableConvolutionFunctions.OutOfBounds oobs,
float oobsValue,
CUDASeparableConvolution cuda,
int cudaDeviceId)
Compute Gaussian convolution
|
boolean |
gauss(float[] img,
int[] dim,
float[] sigma) |
static float[][] |
getCUDAKernels(double[] sigma,
int[] supportedKernelSizes) |
static float[] |
getFloatKernelPadded(double[] kernel,
int size) |
public CUDASeparableConvolutionFunctions(CUDASeparableConvolution cuda, int cudaDeviceId)
public boolean gauss(float[] img, int[] dim, double sigma)
img
- - the image (1d/2d/3d) as flat float arraydim
- - the dimensions of the image in 1d/2d/3dsigma
- - the sigma for all dimensionspublic boolean gauss(float[] img, int[] dim, double[] sigma)
img
- - the image (1d/2d/3d) as flat float arraydim
- - the dimensions of the image in 1d/2d/3dsigma
- - the sigma per dimensionpublic boolean gauss(float[] img, int[] dim, float[] sigma)
public boolean gauss(float[] img, int[] dim, double sigma, CUDASeparableConvolutionFunctions.OutOfBounds oobs, float oobsValue)
img
- - the image (1d/2d/3d) as flat float arraydim
- - the dimensions of the image in 1d/2d/3dsigma
- - the sigma for all dimensionsoobs
- - the OutOfBounds strategypublic boolean gauss(float[] img, int[] dim, double[] sigma, CUDASeparableConvolutionFunctions.OutOfBounds oobs, float oobsValue)
img
- - the image (1d/2d/3d) as flat float arraydim
- - the dimensions of the image in 1d/2d/3dsigma
- - the sigma per dimensionoobs
- - the OutOfBounds strategyoobsValue
- - the value for out of image pixels if the OutOfBoundsStrategy is OutOfBounds.VALUEpublic static final boolean gauss(float[] img, int[] dim, double sigma, CUDASeparableConvolutionFunctions.OutOfBounds oobs, float oobsValue, CUDASeparableConvolution cuda, int cudaDeviceId)
img
- - the image (1d/2d/3d) as flat float arraydim
- - the dimensions of the image in 1d/2d/3dsigma
- - the sigma for all dimensionsoobs
- - the OutOfBounds strategyoobsValue
- - the value for out of image pixels if the OutOfBoundsStrategy is OutOfBounds.VALUEcuda
- - The CUDASeparableConvolution
interface that loaded the external native librarycudaDeviceId
- - which CUDA device to use, -1 means single-threaded computation on CPU using native codepublic static final boolean gauss(float[] img, int[] dim, double[] sigma, CUDASeparableConvolutionFunctions.OutOfBounds oobs, float oobsValue, CUDASeparableConvolution cuda, int cudaDeviceId)
img
- - the image (1d/2d/3d) as flat float arraydim
- - the dimensions of the image in 1d/2d/3dsigma
- - the sigma per dimensionoobs
- - the OutOfBounds strategyoobsValue
- - the value for out of image pixels if the OutOfBoundsStrategy is OutOfBounds.VALUEcuda
- - The CUDASeparableConvolution
interface that loaded the external native librarycudaDeviceId
- - which CUDA device to use, -1 means single-threaded computation on CPU using native codepublic static float[][] getCUDAKernels(double[] sigma, int[] supportedKernelSizes)
public static float[] getFloatKernelPadded(double[] kernel, int size)
Copyright © 2015–2021 Fiji. All rights reserved.