public class Filters extends Object
Modifier and Type | Method and Description |
---|---|
static RealArray[] |
createGradientKernels(int supportRadius)
Creates a pair of
x - and y -axis aligned DooG kernels for gradient calculations. |
static RealArray |
createPointSupport(int supportRadius)
Creates a point support matrix.
|
static RealArray |
createRotationMatrix(double theta)
Creates the
rotation matrix
-cos(θ) -sin(θ)
-sin(θ) cos(θ) . |
static <T extends AbstractArray<?,?,?,?>> |
normalize(T array)
Mutatively normalizes a
RealArray by its L1 norm or, alternatively, a ComplexArray
by its complex magnitudes. |
public static final <T extends AbstractArray<?,?,?,?>> void normalize(T array)
RealArray
by its L1
norm or, alternatively, a ComplexArray
by its complex magnitudes.public static final RealArray createRotationMatrix(double theta)
2
×2
rotation matrix
-cos(θ) -sin(θ)
-sin(θ) cos(θ)
.theta
- the angle of rotation.public static final RealArray[] createGradientKernels(int supportRadius)
x
- and y
-axis aligned DooG kernels for gradient calculations.supportRadius
- the kernel support radius.public static final RealArray createPointSupport(int supportRadius)
x
-coordinates, and the bottom row consists
of y
-coordinates. The points range in a square where the origin is at the center.supportRadius
- the support radius.