309
edits
Fredblaisb (talk | contribs) No edit summary |
Fredblaisb (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
[[File:Video_connection.png|400px]][[File:Feed_selection.png|400px]] | [[File:Video_connection.png|400px]][[File:Feed_selection.png|400px]] | ||
Now that I have an input, I needed to generate informations out of it in order to trigger the signal at the end of the patch. To do so, I based my patch with this [ "frame-differences" tutorial]. | Now that I have an input, I needed to generate informations out of it in order to trigger the signal at the end of the patch. To do so, I based my patch with this [ "frame-differences" tutorial]. In this patch, the "jit.op" object calculates the difference in pixels between the image and its previous one and the "jit.rgb2luma" object transfer it as a luma channel. That way, everything that is still in the image become black and the difference between images (so what is in motion) becomes visible in white. | ||
[[File:Frame_difference.png|400px]][[File:Luma_channel.png|400px]] | [[File:Frame_difference.png|400px]][[File:Luma_channel.png|400px]] | ||
The "jit.3m" object then gives us a single value of the average of this difference. It is with this value that I will trigger the output and thus control the vibration/motion that will be send to the Bioluminescent algae. To trigger the output, I just give a number (that can be adjusted with a slider) that become the threshold. |
edits