Hey everyone,
I am relativly new to vvvv and trying to realise a project with it. And I am stuck right now…
I need to analyse a videostream/video-texture. The texture shows a Laser-line, which is projected horizontaly on a dark object. because of the shape of the object, the laser-line is curvy.
I want to analyse the vertical position of the laserline in each “column” of the vidoeframe. (or at least in 64 colums. i.e. every 5th pixel-column in a 320x240 frame).
So far, I am able to isolate the laser-line from the background by luminance and color. (The realisation of that is my first and only experience in shader-programming…) I have no idea how to get those data. I think, I need to programm a pixelshader for that, but I dont know how.
In a crude way, it should be something like:
if (col.r has the highest value here)
{
spit the y-coordinates out;
}
else dont;
;)
Can anyone help me with this? Is this idea possible to realize at all?
How should the shader really look like?
Thanks