ip.transforms
Class Kernels
java.lang.Object
ip.transforms.Kernels
public final class Kernels
- extends java.lang.Object
Method Summary |
static double |
gauss(double x,
double xc,
double sigma)
|
static double |
gauss(double x,
double y,
double xc,
double yc,
double sigma)
|
static float[][] |
getAverage3x3()
|
static float[][] |
getGabor7()
|
static float[][] |
getGauss15()
|
static float[][] |
getGauss3()
|
static float[][] |
getGauss7()
|
static float[][] |
getGaussKernel(int M,
int N,
double sigma)
|
static float[][] |
getHat13()
|
static float[][] |
getHp(int size)
|
static float[][] |
getHp1()
|
static float[][] |
getHp2()
|
static float[][] |
getHp3()
|
static float[][] |
getHp4()
|
static float[][] |
getHp5()
|
static float[][] |
getLaplaceOfGaussianKernel(int M,
int N,
double sigma)
|
static float[][] |
getLaplacian3()
|
static float[][] |
getLaplacian5()
|
static float[][] |
getLaplacian9()
|
static float[][] |
getLaplacianPrewitt()
|
static float[][] |
getLp1()
|
static float[][] |
getLp2()
|
static float[][] |
getLp3()
|
static double |
getMagnitudeOfTheDerivativeOfGauss(double x,
double y,
double xc,
double yc,
double sigma)
|
static float[][] |
getMagnitudeOfTheDerivativeOfGauss(int M,
int N,
double sigma)
|
static float[][] |
getMean3()
|
static float[][] |
getMean9()
|
static short[][] |
getMedian1x2()
|
static short[][] |
getMedian2x1()
|
static short[][] |
getMedianCross3x3()
|
static short[][] |
getMedianCross5x5()
|
static short[][] |
getMedianCross7x7()
|
static short[][] |
getMedianDiamond()
|
static short[][] |
getMedianOctagon5x5()
|
static short[][] |
getMedianSquare7x7()
|
static float[][] |
getMehrotraAndZhangKernel(int M,
int N,
double h)
|
static float[][] |
getRobinson1()
|
static float[][] |
getRobinson2()
|
static float[][] |
getRobinson3()
|
static float[][] |
getRobinson4()
|
static float[][] |
getRobinson5()
|
static float[][] |
getRobinson6()
|
static float[][] |
getRobinson7()
|
static float[][] |
getRobinson8()
|
static short[][] |
getSizeDetector(short[][] f,
int numberOfPixelsInA3by3Matrix)
use a number of pixels in a 3x3 window that have to be on
before this will allow the pixel to go through. |
static float[][] |
getSobel()
|
static float[][] |
getSobelX(int a)
|
static float[][] |
getSobelY(int a)
|
static double |
laplaceOfGaussian(double x,
double y,
double xc,
double yc,
double sigma)
|
static void |
main(java.lang.String[] args)
|
static double |
mehrotraAndZhang(double x,
double y,
double h)
|
static void |
printGaussKernel(int M,
int N,
double sigma)
|
static void |
printGaussKernel(int M,
int N,
double sigma,
double centerMax)
|
static void |
printLaplaceOfGaussianKernel(int M,
int N,
double sigma)
|
static void |
printMagnitudeOfTheDerivativeOfGauss(int M,
int N,
double sigma)
|
static void |
printMehrotraAndZhang()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getRobinson1
public static float[][] getRobinson1()
getRobinson2
public static float[][] getRobinson2()
getSobel
public static float[][] getSobel()
getSobelX
public static float[][] getSobelX(int a)
getSobelY
public static float[][] getSobelY(int a)
getRobinson3
public static float[][] getRobinson3()
getRobinson4
public static float[][] getRobinson4()
getRobinson5
public static float[][] getRobinson5()
getRobinson6
public static float[][] getRobinson6()
getRobinson7
public static float[][] getRobinson7()
getRobinson8
public static float[][] getRobinson8()
getMedian2x1
public static short[][] getMedian2x1()
getMedian1x2
public static short[][] getMedian1x2()
getSizeDetector
public static short[][] getSizeDetector(short[][] f,
int numberOfPixelsInA3by3Matrix)
- use a number of pixels in a 3x3 window that have to be on
before this will allow the pixel to go through. The large
the number, the more restrictive. Use a number that ranges from 0 to 9.
- Parameters:
f
- input imagenumberOfPixelsInA3by3Matrix
-
- Returns:
- the filtered image
getLaplacian5
public static float[][] getLaplacian5()
getLaplacian3
public static float[][] getLaplacian3()
getLaplacianPrewitt
public static float[][] getLaplacianPrewitt()
laplaceOfGaussian
public static double laplaceOfGaussian(double x,
double y,
double xc,
double yc,
double sigma)
printLaplaceOfGaussianKernel
public static void printLaplaceOfGaussianKernel(int M,
int N,
double sigma)
getLaplaceOfGaussianKernel
public static float[][] getLaplaceOfGaussianKernel(int M,
int N,
double sigma)
getLaplacian9
public static float[][] getLaplacian9()
getHat13
public static float[][] getHat13()
getLp1
public static float[][] getLp1()
getLp2
public static float[][] getLp2()
getLp3
public static float[][] getLp3()
getGabor7
public static float[][] getGabor7()
getMean9
public static float[][] getMean9()
getMean3
public static float[][] getMean3()
getMedianOctagon5x5
public static short[][] getMedianOctagon5x5()
getMedianDiamond
public static short[][] getMedianDiamond()
getMedianCross3x3
public static short[][] getMedianCross3x3()
getMedianCross5x5
public static short[][] getMedianCross5x5()
getMedianCross7x7
public static short[][] getMedianCross7x7()
getMedianSquare7x7
public static short[][] getMedianSquare7x7()
getAverage3x3
public static float[][] getAverage3x3()
getHp
public static float[][] getHp(int size)
getHp1
public static float[][] getHp1()
getHp2
public static float[][] getHp2()
getHp3
public static float[][] getHp3()
getHp4
public static float[][] getHp4()
getHp5
public static float[][] getHp5()
main
public static void main(java.lang.String[] args)
printMehrotraAndZhang
public static void printMehrotraAndZhang()
getMehrotraAndZhangKernel
public static float[][] getMehrotraAndZhangKernel(int M,
int N,
double h)
mehrotraAndZhang
public static double mehrotraAndZhang(double x,
double y,
double h)
gauss
public static double gauss(double x,
double y,
double xc,
double yc,
double sigma)
gauss
public static double gauss(double x,
double xc,
double sigma)
printGaussKernel
public static void printGaussKernel(int M,
int N,
double sigma,
double centerMax)
printGaussKernel
public static void printGaussKernel(int M,
int N,
double sigma)
getGaussKernel
public static float[][] getGaussKernel(int M,
int N,
double sigma)
getMagnitudeOfTheDerivativeOfGauss
public static double getMagnitudeOfTheDerivativeOfGauss(double x,
double y,
double xc,
double yc,
double sigma)
printMagnitudeOfTheDerivativeOfGauss
public static void printMagnitudeOfTheDerivativeOfGauss(int M,
int N,
double sigma)
getMagnitudeOfTheDerivativeOfGauss
public static float[][] getMagnitudeOfTheDerivativeOfGauss(int M,
int N,
double sigma)
getGauss3
public static float[][] getGauss3()
getGauss7
public static float[][] getGauss7()
getGauss15
public static float[][] getGauss15()