|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--RandomNoise
RandomNoise is an algorithm to generate random noise in an image of either type Gaussian or Shot.
code.iface.rnoise
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
RandomNoise()
|
Method Summary | |
int[] |
Gaussian(int[] src_1d,
int width,
int height,
float par)
Gaussian adds gaussian noise to the input image. |
int[] |
ShotFull(int[] src_1d,
int width,
int height,
float par)
ShotFull applies full shot noise to the input image. |
int[] |
ShotPartial(int[] src_1d,
int width,
int height,
float par)
ShotPartial applies partial shot noise to the input 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 RandomNoise()
Method Detail |
public int[] ShotFull(int[] src_1d, int width, int height, float par)
src_1d
- The source image as a pixel arraywidth
- width of the destination image in pixelsheight
- height of the destination image in pixelspar
- This is used to represent the probability that a pixel will changed.public int[] ShotPartial(int[] src_1d, int width, int height, float par)
src_1d
- The source image as a pixel arraywidth
- width of the destination image in pixelsheight
- height of the destination image in pixelspar
- This is used to represent the probability that a pixel will changepublic int[] Gaussian(int[] src_1d, int width, int height, float par)
src_1d
- The source image as a pixel arraywidth
- width of the destination image in pixelsheight
- height of the destination image in pixelspar
- This represents the Standard Deviation by which the Gaussian noise is generated
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |