|
||||||||||
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.Greyscale
public class Greyscale
Converts the image to an accurate greyscale representation. This is the
preferred method of making an image greyscale over simply using
Saturation.Saturation()
to desaturate the image because it will
produce better results.
Params: (void)
Constructor Summary | |
---|---|
Greyscale()
|
Method Summary | |
---|---|
int[] |
process(int[] rgb)
Processes the given pixel and returns the updated values. |
Methods inherited from class com.meltingice.caman.CamanFilter |
---|
getKernel, getParamDouble, getParamInt, precomputeParams, set, set, type |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Greyscale()
Method Detail |
---|
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 |