|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--GaussianSmooth
Contains the functionality to generate a gaussian filter kernel and apply it to an image.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
GaussianSmooth()
Default no-args constructor. |
Method Summary | |
static double[][] |
gaussian2D(double theta,
int size)
Calculates several discrete values of the 2D gaussian distribution. |
static double |
gaussianDiscrete2D(double theta,
int x,
int y)
Calculates the discrete value at x,y of the 2D gaussian distribution. |
static int[] |
smooth_image(int[] input,
int w,
int h,
int ks,
double theta)
Takes an input image and a gaussian distribution, calculates an appropriate kernel and applies a convolution to gaussian smooth the image. |
static double[][] |
smooth(double[][] input,
int width,
int height,
int ks,
double theta)
Takes an image and a gaussian distribution, calculates an appropriate kernel and applies a convolution to smooth the image. |
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
run,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public GaussianSmooth()
Method Detail |
public static double gaussianDiscrete2D(double theta, int x, int y)
theta
- the theta value for the gaussian distributionx
- the point at which to calculate the discrete valuey
- the point at which to calculate the discrete valuepublic static double[][] gaussian2D(double theta, int size)
theta
- the theta value for the gaussian distributionsize
- the number of discrete values to calculate (pixels)public static double[][] smooth(double[][] input, int width, int height, int ks, double theta)
2D
- array representing the input imagew
- width of the imageh
- height of the imageks
- the required size of the kerneltheta
- the gaussian distributionpublic static int[] smooth_image(int[] input, int w, int h, int ks, double theta)
input
- the input image arrayw
- the width of the imageh
- the height of the imageks
- the size of the kernel to be generatedtheta
- the gaussian distribution
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |