// // Simple camera-only program that generates the colour negative of every frame // #include "picture.h" int main() { colour_picture in(480,640);// Set up picture of 640 cols by 480 rows colour_picture out(480,640); in.show("Input"); out.show("Output"); in.attach_camera();// Connect the picture to the camera in.request_frame(); while(!in.closerequested() && !out.closerequested()) { while (!in.frame_delivered()) ; // Wait for next frame in.request_frame(); // Start next frame capture while doing: out = in; out *= -1; in.reshow(); out.reshow(); } return 0; }