public abstract class Filters
extends java.lang.Object
| Constructor and Description |
|---|
Filters() |
| Modifier and Type | Method and Description |
|---|---|
static void |
gaussianBlur(ImageDescriptor src,
ImageDescriptor dst,
double sigma)
Apply a gaussian blur on a 2D or 3D image.
|
static void |
gradient(ImageDescriptor src,
ImageDescriptor Fx,
ImageDescriptor Fy,
ImageDescriptor Fz)
Compute the gradient of an image.
|
static void |
gradientDirection(ImageDescriptor Fx,
ImageDescriptor Fy,
ImageDescriptor Fz,
ImageDescriptor Alpha,
ImageDescriptor Beta,
ImageDescriptor Gamma)
Compute the gradient direction.
|
public static void gaussianBlur(ImageDescriptor src, ImageDescriptor dst, double sigma) throws java.lang.Exception
src - The input imagedst - The output image. Must have the same size as src.sigma - Standard deviation of the gaussian filter.java.lang.Exception - Throw an exception if src and dst have not the same size.public static void gradient(ImageDescriptor src, ImageDescriptor Fx, ImageDescriptor Fy, ImageDescriptor Fz) throws java.lang.Exception
src - The input imageFx - Derivative along the x direction.Fy - Derivative along the y direction.Fz - Derivative along the z direction if it's a 3D image.java.lang.Exception - Throw an exception if src, Fx, Fy (and Fz) have not the same
size.public static void gradientDirection(ImageDescriptor Fx, ImageDescriptor Fy, ImageDescriptor Fz, ImageDescriptor Alpha, ImageDescriptor Beta, ImageDescriptor Gamma) throws java.lang.Exception
Fx - Derivative along the x direction.Fy - Derivative along the y direction.Fz - Derivative along the z direction if it's a 3D image.Alpha - Orientation of the gradient from x and y directions.Beta - Orientation of the gradient from z and y directions.Gamma - Orientation of the gradient from x and z directions.java.lang.Exception - Throw an exception if the images have not the same size.