|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.lang.Thread
|
+--MeanSmooth
|
+--Unsharp
The unsharp operator code.
| Field Summary | |
static int[] |
kernel
The all 1s kernel. |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
| Constructor Summary | |
Unsharp()
|
|
| Method Summary | |
static int[] |
pixelAddition(int[] pixels1,
int[] pixels2)
Adds each pixel in pixels2 to the corresponding pixel in pixels1. |
static int[] |
pixelMultiplication(int[] pixels,
double k)
Multiplies each pixel in pixels with the constant. |
static int[] |
pixelSubtraction(int[] pixels1,
int[] pixels2)
Subtracts each pixel in pixels2 from the corresponding pixel in pixels1. |
static int[] |
unsharp_image(int[] input,
int width,
int height,
double k)
Takes an image and applies the unsharp filter to it. |
| Methods inherited from class MeanSmooth |
generateInputArrays,
generateOutputArray,
meanNeighbour,
smooth_image,
smooth,
smoothImage |
| 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 |
| Field Detail |
public static int[] kernel
| Constructor Detail |
public Unsharp()
| Method Detail |
public static int[] pixelSubtraction(int[] pixels1,
int[] pixels2)
pixels1 - the first array of pixelspixels2 - the array to subtract from the first
public static int[] pixelAddition(int[] pixels1,
int[] pixels2)
pixels1 - the first array of pixelspixels2 - the pixels to add to pixels1
public static int[] pixelMultiplication(int[] pixels,
double k)
pixels - the array of pixelsk - the multiplication constant
public static int[] unsharp_image(int[] input,
int width,
int height,
double k)
input - the input image arraywidth - of the imageheight - of the imagek - the unsharp constant
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||