|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.meltingice.caman.CamanFilter
com.meltingice.caman.filters.Noise
public class Noise
Applies a variable amount of pseudorandom noise to an image.
Constructor Summary | |
---|---|
Noise()
|
Method Summary | |
---|---|
void |
precomputeParams()
Allows the filter to precompute any required values before CamanFilter.process(int[]) is executed. |
int[] |
process(int[] rgb)
Processes the given pixel and returns the updated values. |
Methods inherited from class com.meltingice.caman.CamanFilter |
---|
getKernel, getParamDouble, getParamInt, set, set, type |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Noise()
Method Detail |
---|
public void precomputeParams() throws InvalidArgumentsException
CamanFilter
CamanFilter.process(int[])
is executed. This helps with speed so
that arguments don't have to be recomputed for every pixel.
precomputeParams
in class CamanFilter
InvalidArgumentsException
public int[] process(int[] rgb)
CamanFilter
process
in class CamanFilter
rgb
- The current pixel's color values
rgb[0] => red, rgb[1] => green, rgb[2] => blue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |