We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
muybridge effect ? (Read 955 times)
muybridge effect ?
Jun 16th, 2009, 1:59am
 
     
I want to know [thank you in advance Smiley] as it possible, starting with a video, to create a "Muybridge effect" (every frame (25fps) in an unique space - ex. one sheet), and save it in pdf.

regards, gabriel

Re: muybridge effect ?
Reply #1 - Jun 17th, 2009, 2:04am
 
for saving in pdf just give a look here

for the muybridge, it's pretty easy; here's a code snippet I wrote some time ago that does the trick (it uses openCV for the capture but you could use any other library):
Code:
import hypermedia.video.*;

OpenCV opencv;

float w,h;

int conta,conty;

void setup(){
size(640,480);

opencv = new OpenCV(this);
opencv.capture(640,480);

w = width/64;
h = height/48;

conta=0;
conty=0;

frameRate(25);
}

void draw(){
opencv.read();
opencv.flip(OpenCV.FLIP_HORIZONTAL);

image(opencv.image(),conta*width/10,conty*height/10,width/10,height/10);

if(conta<10){
conta++;
}else{
conty++;
conta=0;
}
if(conty>9){
conta=0;
conty=0;
}
}
Re: muybridge effect ?
Reply #2 - Jun 19th, 2009, 10:04am
 
Thanks a lot for helping me !!!
:-D have a nice day..
Page Index Toggle Pages: 1