Package gov.nih.mipav.model
Class GaussianKernelFactory
- java.lang.Object
-
- gov.nih.mipav.model.GaussianKernelFactory
-
- All Implemented Interfaces:
KernelFactory
public class GaussianKernelFactory extends java.lang.Object implements KernelFactory
-
-
Field Summary
Fields Modifier and Type Field Description static int
BLUR_KERNEL
private int
derivativeOrder
private int[]
extents
private int
extentScale
private int
kernelType
private java.util.logging.Logger
logger
private float[]
sigmas
static int
X_DERIVATIVE_KERNEL
static int
Y_DERIVATIVE_KERNEL
static int
Z_DERIVATIVE_KERNEL
-
Constructor Summary
Constructors Modifier Constructor Description private
GaussianKernelFactory(float[] sigmas)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Kernel
createBlurKernel()
Kernel
createKernel()
Kernel
createXDerivativeKernel()
Kernel
createYDerivativeKernel()
Kernel
createZDerivativeKernel()
private int
determineExtent(float sigma)
static GaussianKernelFactory
getInstance(float[] sigmas)
int
getKernelType()
void
setDerivativeOrder(int derivativeOrder)
void
setExtentScale(int extentScale)
void
setKernelType(int kernelType)
-
-
-
Field Detail
-
BLUR_KERNEL
public static final int BLUR_KERNEL
- See Also:
- Constant Field Values
-
X_DERIVATIVE_KERNEL
public static final int X_DERIVATIVE_KERNEL
- See Also:
- Constant Field Values
-
Y_DERIVATIVE_KERNEL
public static final int Y_DERIVATIVE_KERNEL
- See Also:
- Constant Field Values
-
Z_DERIVATIVE_KERNEL
public static final int Z_DERIVATIVE_KERNEL
- See Also:
- Constant Field Values
-
logger
private java.util.logging.Logger logger
-
sigmas
private float[] sigmas
-
extents
private int[] extents
-
kernelType
private int kernelType
-
derivativeOrder
private int derivativeOrder
-
extentScale
private int extentScale
-
-
Method Detail
-
getKernelType
public int getKernelType()
-
setKernelType
public void setKernelType(int kernelType)
-
setDerivativeOrder
public void setDerivativeOrder(int derivativeOrder)
-
setExtentScale
public void setExtentScale(int extentScale)
-
getInstance
public static GaussianKernelFactory getInstance(float[] sigmas)
-
createKernel
public Kernel createKernel()
- Specified by:
createKernel
in interfaceKernelFactory
-
createBlurKernel
public Kernel createBlurKernel()
-
createXDerivativeKernel
public Kernel createXDerivativeKernel()
-
createYDerivativeKernel
public Kernel createYDerivativeKernel()
-
createZDerivativeKernel
public Kernel createZDerivativeKernel()
-
determineExtent
private int determineExtent(float sigma)
-
-