Feb 27 2009
Report 3
Finished Report 3
Feb 26 2009
Feb 24 2009
Been playing around with ess r2. I made a small throwaway prototype to control audio and pitch. It's not working really well at the moment due to the report deadline.
if(mouseButton == LEFT) myWave=new SineWave(pitch,volume++); myWave.generate(myChannel,0,myChannel.frames(1000)); myChannel.play();
Have to come back to it later and implement it with controlP5.
Feb 23 2009
After talking to pat, he advised me to wear a glove or something that will be easily tracked when working with JMyron. So I tapped some white paper to a transparent ruler. It's working a lot better
Feb 23 2009
Report 3 due on Friday 27th
Formative Demonstrations 4th March
Feb 21 2009
Testing out the differences between the DV camera and web cam. The webcam picks up less globs due to the lower resolution. This could be good work out well due to the fact that pixels of similar value may not be picked up which will not cause the centre point problem.
Feb 20 2009
Doing more work with JMyron, the mirroring problem is going on the back burner (it's taking up too much time).
From testing, I've found that the Library to get the centre point of all globs works by calculating the average of all available globs and placing a circle in the middle. This has it's downfall in that once the a glob is detected with similar color values, the area to be calculated gets bigger, thus changing the center point.
Feb 18 2009
Talked to Karl about Mirroring, he that the globs have to have a point of origin. Using graph paper would save me some headache.
Looking back on the code, the globs are output on the screen in a multi-dimensional array. After researching them, I can't get my head around them yet.
Feb 17 2009
Having an annoying problem with mirroring. I can get the video feed to mirrror, but I can't mirror the globs.
here's the code for mirroring the video feed:
void drawCamera(){
int[] img = m.image();
loadPixels();
for(int i=1;i<width;i++){
for (int j=1;j<height;j++){
pixels[(m.width() - i - 1) + j * m.width()]= img[(i) + j * m.width()];
}
}
updatePixels();
}
Feb 15 2009
Got a loan of a DV Camera, connected through firewire and it's working great
Much more responsive, accurate and larger resolution.