Structured Light meets DAVID Laserscanner

Problems, solutions and discussion about scanning with a video projector and stripe patterns.

Re: Structured Light meets DAVID Laserscanner

Postby MagWeb » Sun May 31, 2009 9:20 am

Hi Greg,
what´s about slides as they are in that toy photocams.: You click once and the "slides" on a rotating disk move a certain degree.
Similar to my color filters disk but inside the optics as vary gobo projectors... stepper driven .... should work

Gunter
MagWeb
Moderator
 
Posts: 2479
Joined: Wed Jul 18, 2007 8:48 pm

Re: Structured Light meets DAVID Laserscanner

Postby WalterMo » Sun May 31, 2009 9:48 am

A similar idea like Greg I already had some time ago to create the phase shift:
viewtopic.php?f=3&t=280&start=45

And now we have the possibility to control such a thing by a microcontroller from DAVID via USB / RS232 adapter.
User avatar
WalterMo
Moderator
 
Posts: 2250
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Structured Light meets DAVID Laserscanner

Postby Simon » Sun May 31, 2009 9:51 am

Hi,
I have done some small improvements based on Joes test images. Please download again:

Edit (29th September 2009): The structured light feature is now part of the official release. So please download the latest version here: http://www.david-laserscanner.com/?section=Downloads

Now the simulated line is more realistic and DAVID is able to filter out many outliers.
You will also find a very first pattern projection dialog when you choose "Structured Light Grabber".

Please note: These features are still far from beeing finished. Currently thay are only designed for a projector with a resolution not much lower than 1024x768, 12 pattern projections, and a camera with a resolution around 1024x768. All other resolutions and number of patterns are not tested and will not work correctly.

Please do not hesitate to post your camera shots! It will help us to carry on improving the structured light feature of DAVID. :D

Bongobat wrote:Is it possible to have one fringe pattern slide projected but accurately rotate the entire slide projector between frames? What kind of step accuracy would be needed or does it have to be linear movement to create the phase shift?

Yes, a rotation of the projector around the projectors focal line should work. But Gunter is right, I think a linear movement of the slide is a better choice.
User avatar
Simon
Administrator
 
Posts: 421
Joined: Sun Jan 21, 2007 3:40 pm
Location: Braunschweig - Germany

Re: Structured Light meets DAVID Laserscanner

Postby MagWeb » Sun May 31, 2009 10:06 am

Hi,
@Simon
Thanks for the improved version I´m gonnado some tests today - with a better projector and my Exilim..

@ moving a projector linear to get the phaseshift:

I think moving the projector to get the phase shift works only on a 2D surface. In 3D ithink it may cause wrong data for a projector "simultates" a "rotating movement" - its lines are not parallel. so it should move slower the nearer the object area is to the projector... A linear movement shifts the projection in a 3d parallel way....

- difficult to explain hope you got what i mean.
Gunter
MagWeb
Moderator
 
Posts: 2479
Joined: Wed Jul 18, 2007 8:48 pm

Re: Structured Light meets DAVID Laserscanner

Postby MagWeb » Sun May 31, 2009 10:40 am

Hi Simon,

cann´t get the projections on the second monitor. the dialog sees the second one but the patterns always cover the first screen.
Any need to set a special position of the second monitor or has it to be exactly at 1024x768 ? (I tried also a real monitor instead of my microprojector) - but that may be a special problem of my bootcamp system as well.

Gunter
MagWeb
Moderator
 
Posts: 2479
Joined: Wed Jul 18, 2007 8:48 pm

Re: Structured Light meets DAVID Laserscanner

Postby joecnc2006 » Sun May 31, 2009 9:48 pm

MagWeb wrote:Hi Simon,

cann´t get the projections on the second monitor. the dialog sees the second one but the patterns always cover the first screen.
Any need to set a special position of the second monitor or has it to be exactly at 1024x768 ? (I tried also a real monitor instead of my microprojector) - but that may be a special problem of my bootcamp system as well.

Gunter


Same here i have the projector as second monitor and the patterns only show on the 1st monitor, and i know my system is setup correctly because of the Identify monitors the Large No. 2 shows on the projector.
Joe

David-Laserscanner Professional Edition, Logitech Pro 9000 Webcam, LC532-5-3-F(16x65)

www.joescnc.com
User avatar
joecnc2006
 
Posts: 207
Joined: Fri Dec 12, 2008 3:10 pm

Re: Structured Light planeless

Postby MagWeb » Sun May 31, 2009 10:03 pm

Hi,

here a result using the without background feature:

first : I did images of an empty corner
>>> reference scan >>>> rotating motion detected
second: I removed the planes and shot an angel :twisted:

-my M3 microprojector at native VGA (supports interpolated 1024X768)
-unmodified patterns as posted by Simon (implemented pattern dialog could not be used >> see above)
-Logitech Pro 9000 at 960x720

realy much depends on the settings. I had to set contrast rather high to get a line without nervous jumps>>> so the fringe shots appear as BW stripes without grey between....

Gunter

Edit: Allow data behind the planes to get the wings!
Attachments
ANGEL too.zip
Images
(495.66 KiB) Downloaded 229 times
Files.zip
Calbpoints.dat laser_motion. xml
(7.01 KiB) Downloaded 221 times
Andel too.jpg
Result
MagWeb
Moderator
 
Posts: 2479
Joined: Wed Jul 18, 2007 8:48 pm

Re: Structured Light meets DAVID Laserscanner

Postby Bongobat » Sun May 31, 2009 11:52 pm

Hi,

@ Walter
Sorry I was thinking someone already had the idea but I was too lazy too look it up. :oops: Can you explain the piezo actuators? Where are these available?

@ Gunter
The toy rotating disc idea is good but the slide needs to be places correctly and the rotating mechanism has to be very exact I would imagine. I was hoping to use the projector as it is but your explination about parallel vs rotation makes sense. Both rotating disc and linear actuator ideas sound possible. Maybe it can be worked out :wink:

@ Simon
How would the software handle analog photographic slides as opposed to digital images? Any problems?

Greg
DealExtreme red line laser, Microsoft Lifecam HD-5000
User avatar
Bongobat
Moderator
 
Posts: 1002
Joined: Mon Apr 02, 2007 10:02 am
Location: Ohio, USA

Animated GIF sequences

Postby hal » Mon Jun 01, 2009 2:33 pm

Hello,
unfortunately I could to test David with the projector only one time. Now my Camera seems... in holiday :evil:
I don't know why, but it don't work any more :( I hope to find quickly the problem and a solution.

In the meantime, I've done these 10 .gif animations: 5 with a loop animation and 5 with no loop (animation played only one time). The .gif animated images have inside the 12 patterns created by Simon, in the right sequence.
The animation were done at differents fps speeds (1, 2, 4, 8 and 12 fps), so, you can choose which you prefer and which is better for your purpose.

I hope that these .gif images will be seen by all the users on your pc, under Windows and under Mac o.s. . Please confirm if I'm right.

I've done a test with a projector. At now, I don't have PowerPoint installed or other 2D viewer softwares that allow to show the animation in the second monitor view (the projector).
So, I've used the "desktop background image" as viewer :roll:
I've opened the control panel of my Desktop, choose the resolution of the second monitor at 1024 x 768 and choose the "Extend the Desktop on second monitor" option.
After I've only choose the .gif image as background of the desktop... and animation was played at full resolution of 1024x768, without problem (ok, the same animated background appears in the first monitor, and this fact can disturb you during work :| , but this is a temporary solution, waiting for a better solution to project the patterns sequence only on the second monitor/projector).

To capture the images projected on the object/panels is an other chapter :oops:
Now, without my camera, I can't test the best solution the catch the images, but probably the best thing is:
- For fast animation of the sequence: to record a video and after grab the images sliding the timeline frame after frame;
- For slow animation of the sequence: take a camera shoot for every projected image.

Bye, Mattia
Attachments
MatM_David-12-Patterns_Loop and NoLoop.zip
Animation of the 12 patterns sequence as GIF files.
(5.05 MiB) Downloaded 331 times
User avatar
hal
Moderator
 
Posts: 1468
Joined: Thu Mar 01, 2007 4:08 pm
Location: Cavaria con Premezzo (VA), Italy.

Re: Structured Light meets DAVID Laserscanner

Postby WalterMo » Mon Jun 01, 2009 5:30 pm

Hi Greg,
Piezo actuators are mainly built of single piezoeletric disks which are stacked to a column. The applied voltage (up to 100V) and the number of disks determine the possible travel of such a device.
Its advantage: Very precise, very fast and rather strong.
Disadvantages: Not cheap and not easy to use because of the rather high voltage.

Easier and much cheaper is to move the slide by a RC servo. They need 5V power and input pulses with a repetition frequency of 50 Hz and variable width of 1 to 2 ms. The width corresponds to the rotation angle of the output shaft (0 to 90°). If a metric 6mm screw (spindle) would be rotated a linear travel of 0.25mm of a female screw mounted at the slide could be achieved.

Is the atmega8 able to generate such pulses?
User avatar
WalterMo
Moderator
 
Posts: 2250
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Structured Light meets DAVID Laserscanner

Postby Simon » Mon Jun 01, 2009 9:42 pm

Thank you for you feedback so far!
MagWeb wrote:cann´t get the projections on the second monitor. the dialog sees the second one but the patterns always cover the first screen. Any need to set a special position of the second monitor or has it to be exactly at 1024x768 ? (I tried also a real monitor instead of my microprojector) - but that may be a special problem of my bootcamp system as well.

joecnc2006 wrote:Same here i have the projector as second monitor and the patterns only show on the 1st monitor, and i know my system is setup correctly because of the Identify monitors the Large No. 2 shows on the projector.

Thanks, I found a bug, now it should work. The window should cover the entire screen of the choosen Monitor. Any screen resolution and any position should work. But the user settings are still not saved and restored after restart. Please download again:

DAVID_2_4_1_CLA.zip

Bongobat wrote:@ Simon
How would the software handle analog photographic slides as opposed to digital images? Any problems?

I guess photographic slides should work too. Whether digital or analog, you always need correct gray values. The sine pattern should be projected as correct sine (which is not always the case, since it depends on the quality of the projectors color calibration or on the quality of the photographic slides).
User avatar
Simon
Administrator
 
Posts: 421
Joined: Sun Jan 21, 2007 3:40 pm
Location: Braunschweig - Germany

Re: Structured Light meets DAVID Laserscanner

Postby MagWeb » Tue Jun 02, 2009 12:07 am

Hi Simon,

I debuged my patterngenerator today. The reason for the "nervous" resulting line was a wrong order in the fringes sequence.
To test different resolutions, I made the sin-height configurable - according to the used number of patterns ,too
So the fringes height should be the screen height % the n.th potenz of 2 , where "n" is the number of patterns minus 6 (4 fringes patterns plus 2 enlighted - not enlighted)

So if one uses 12 patterns one needs 64 sin waves (2x2x2x2x2x2)to get the same height of two waves as the stripes of the first Gray pattern (screenheight/32).
So if one uses 11 patterns one needs 32 sin waves (2x2x2x2x2)to get the same height of two waves as the stripes of the second ,which is here the first, Gray pattern (screenheight/16).

Now, running your pattern generator I get 33,5 sin peaks and a nervous resulting line...that should not fit to the following Gray sequence.. or did I miss something?

Gunter
MagWeb
Moderator
 
Posts: 2479
Joined: Wed Jul 18, 2007 8:48 pm

Re: Structured Light meets DAVID Laserscanner

Postby Bongobat » Tue Jun 02, 2009 1:57 am

Hi, First sorry seems two conversations are going on. Maybe we should split this topic in the future :?:

@ Walter

Thanks for the info on the actuators. The servos sound like a good idea too. Okay I know... I am cheap but what about this: http://www.dealextreme.com/details.dx/sku.12859 Do these work like you were describing? Also I think you are talking about pulse width modultion? If so then yes the atmega chips do have that feature :wink:

Greg
DealExtreme red line laser, Microsoft Lifecam HD-5000
User avatar
Bongobat
Moderator
 
Posts: 1002
Joined: Mon Apr 02, 2007 10:02 am
Location: Ohio, USA

Re: Structured Light meets DAVID Laserscanner

Postby WalterMo » Tue Jun 02, 2009 11:26 am

Greg,
We should really split this topic, so please do it with your next post if you see a future using a slide projector for structured light scanning.
The dealextreme servo is just the kind of servo that I mean.
I think no model boat or – aircraft can work without them. And its controlling seems to be internationally standardized. Yes, they are controlled by pulse width modulation. The atmega8 seems to be very universal. :)

In the past there were also suggestions on this forum to mount the laser at a servo and sweep the line by this way over the object. I think the resolution of servos is too coarse for this application.

But if such a servo is at your hand, give it a try.

Walter
User avatar
WalterMo
Moderator
 
Posts: 2250
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Structured Light meets DAVID Laserscanner

Postby joecnc2006 » Tue Jun 02, 2009 1:34 pm

Simon wrote:Thanks, I found a bug, now it should work. The window should cover the entire screen of the choosen Monitor. Any screen resolution and any position should work. But the user settings are still not saved and restored after restart. Please download again:

DAVID_2_4_1_CLA.zip



Simon, it works for me now, looks good.
Joe

David-Laserscanner Professional Edition, Logitech Pro 9000 Webcam, LC532-5-3-F(16x65)

www.joescnc.com
User avatar
joecnc2006
 
Posts: 207
Joined: Fri Dec 12, 2008 3:10 pm

PreviousNext

Return to Structured Light Scanning

Who is online

Users browsing this forum: No registered users and 2 guests