|
||||||||||
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.Saturation
public class Saturation
Adjusts the saturation of the image. Negative values will desaturate, while
positive values will saturate. If you are looking to make an image greyscale,
use the Greyscale.Greyscale()
filter instead.
Params: (double)
Constructor Summary | |
---|---|
Saturation()
|
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 Saturation()
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 |