Pacific-Design.com

    
Home Index

1. Computer Vision

2. Dithering

+ Floyd Steinberg

+ Grey Shades

Computer Vision / Dithering /

Floyd Steinberg Dithering

/*
 * Floyd–Steinberg dithering algorithm commonly used by image manipulation 
 * when an image is converted into GIF format restricted to 256 colors.
 * Writen by: Kevin Duraj based on Wikipedia pseudocode
 * Reference: http://en.wikipedia.org/wiki/Floyd–Steinberg_dithering
 */

package dithering3;

import java.io.IOException;

public class Dithering3 {

    public static void main(String[] args) throws IOException {
       FloydSteinberg floyd = new FloydSteinberg();
              
       floyd.process("rose.png", "rose_floyd_steinberg_dither.png");
    }
}