Lüdenscheider Photoerpresser
My algorithm was messed up a little. Now I fixed it.

This is the code. An alternative version of Ji-Hoon Byun & E.J. Gone can be see at Processing.org
import processing.video.*;
Capture camera;
int colCount;
color[] aggrImg;
color actPx;
void setup() {
size(320, 240);
framerate(15);
String s = “QuickCam”;
camera = new Capture(this, s, width, height, 15);
colCount = 0;
aggrImg = new color[width*height];
}
void captureEvent(Capture camera) {
camera.read();
}
void draw() {
image(camera, 0, 0);
loadPixels();
if(colCount%20 == 0) println(”colCount = ” + colCount);
if (colCount < width) {
for (int i = 0; i < height; i++) {
actPx = pixels[width/2 + i * width];
aggrImg[colCount + i * (width)] = actPx;
}
colCount++;
} else {
for (int i = 0; i < width*height; i++) {
pixels[i] = aggrImg[i];
}
updatePixels();
}
}
And here's another image that was rendered:


Bas said,
June 18, 2005 @ 9:44 pm
Warning: Don't use Processing version 0091 beta for capturing video. I fought with memory leaks until it started to use 0900 again.