Ask Your Question
0

Laser sweeping : from video to image

asked 2015-05-31 08:19:07 -0500

edgenk gravatar image

Hello,

I have a video of me sweeping a laser pointer over a static scene and I would like to turn that video into a picture of the scene with the laser curve from beginning to end on it.

If someone could point me in the right direction towards the best way to do it and the relevant opencv functions that would be really great.

Here is a picture describing what I want to do :

image description

Thank you very much!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-05-31 08:56:45 -0500

theodore gravatar image

The approach that you need to follow, I think that it is quite easy and obvious:

  1. detect the the laser point
  2. track it through the video frames
  3. keep history of the laser point coordinates from each frame into a buffer (i.e. vector<point>)
  4. draw line between the each point into the vector at the end of the video or as the video is running if you want to have a direct visualization

and that's it.

edit flag offensive delete link more

Comments

That's a good idea but I'd like to avoid tracking the laser as much as possible for this step (because there might be multiple lasers). Would it be possble to only rely on frame combinations to do this? (each frame will only differ from the others at the point(s) where the laser(s) is (are) pointing).

edgenk gravatar imageedgenk ( 2015-05-31 11:51:51 -0500 )edit

@edgenk in this case here tracking equals to detect the laser and save the position coordinates through frames. That means, step 2 and 3 should be considered as the same action. Nothing fancy, it is the simplest tracking procedure that you can have. I do not think you can do it otherwise, without increasing the complexity of your project. Simple things, detect --> save position --> draw line.

theodore gravatar imagetheodore ( 2015-05-31 14:41:18 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-05-31 08:18:30 -0500

Seen: 156 times

Last updated: May 31 '15