|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--jigl.image.SimpleOperator
|
+--jigl.image.ops.Dither
This class provides the basic Floyd-Steinberg algorithm for dithering. The weights used are 7/16, 3/16, 5/16, 1/16. Supports ColorImage.
| Field Summary | |
private int |
exact
|
(package private) int |
threshold
|
private KdTree |
tree2
Stores the image. |
| Constructor Summary | |
Dither(RealColorImage paletteImage)
Creates a new instance of Dither. |
|
| Method Summary | |
protected Image |
apply(ColorImage image)
Applies the palette to a ColorImage applying Floyd-Steinberg dithering. |
private float[] |
findBest(float[] best)
Utility methods |
static void |
main(String[] arg)
This will test the functionality of this function |
| Methods inherited from class jigl.image.SimpleOperator |
apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private KdTree tree2
int threshold
private int exact
| Constructor Detail |
public Dither(RealColorImage paletteImage)
KdTree| Method Detail |
protected Image apply(ColorImage image)
image is not modified.
apply in class SimpleOperatorimage - ColorImage to dither
private float[] findBest(float[] best)
public static void main(String[] arg)
throws Object
Object
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||