slass G22GhostImage is MakesBufferedImage { // number of images averaged int imageCount; // array contains raw sum over images // (1 for white pixel, 0 for black pixel) int[] pixels; FloatBWImage toFloatBWImage() { } public BufferedImage getBufferedImage() { ret toFloatBWImage().getBufferedImage(); } }