1 (edited by pirvan 2015-12-06 06:22:09)

Topic: Aligning multiple angle scans manually

One of the problems when scanning irregular, complex objects is that the laser and camera can't see every area, or inside concave areas and holes.  There are simply too many "blind spots". 

One solution to solve this problem, is to change the angle from which you scan the object, and perform multiple scans.  Each scan will see a part of the model which the other scan didn't see.  Once you have most or all the areas covered, you can align the individual scans and get a fairly complete scan.

This tutorial deals with the alignment of these scans, but here is a brief rundown on how I achieved the multiple scans:

The first scan is done by placing the model in the center of the turntable, like we usually do.  For the second scan, the model is brought forward near the front edge of the turntable, This will give a different angle for the front and back, but not much on the sides. Next I tiled the model back at ~45°.  I propped it up using a thin (1mm) wire, simple but effective.  Last I did the same thing but this time I titled it forward.

Each scan was done at 5MP, and 1600 steps (about 50 minutes per scan).  Once you have all the scans, we need to assemble them and align them into a single mesh. 

NOTE:  Cleaning a model is a very important part of this process.  Using a scan with lots of noise will result in a very poorly aligned model, and a poor quality resulting mesh.  So please clean up your scan before attempting to align them.  Check my other posts on how to clean up a model in MeshLab

First we start by opening MeshLab.  Next, click File, Import Mesh, then navigate to where the scanned files are and select them.  You can multiple select by holding the SHIFt key (sequential files), or the CTRL key (non-sequential).

http://www.soliforum.com/misc.php?action=pun_attachment&item=9396

Next, all the meshes load on the main screen overlapping each other.  Notice the angles at which they open.  These are the angles at which they were scanned.  Additionally, the layer screen should automatically open as well.  If it doesn't, just click the Layer view button on the menu bar.

http://www.soliforum.com/misc.php?action=pun_attachment&item=9397
http://www.soliforum.com/misc.php?action=pun_attachment&item=9398

By default MeshLab enables the "Flat" view, but we want to see the actual point cloud, so click "Point" view button, then Click the Align button.  This opens up the Align Tool window. 

http://www.soliforum.com/misc.php?action=pun_attachment&item=9399

The first thing we need to do is change a few things.  Check the "Use Point Rendering", and uncheck Use False Colors.  The false colors option is only useful for meshes without color information.  Next make only the first layer visible, then click the "Glue Here Mesh" (Hmmm... must be Yoda speak for glue mesh here smile ).  This makes the first layer the reference layer to which the other layers will be aligned.

http://www.soliforum.com/misc.php?action=pun_attachment&item=9400

Post's attachments

Align-001.jpg
Align-001.jpg 130.75 kb, file has never been downloaded. 

Align-002.jpg
Align-002.jpg 148.02 kb, file has never been downloaded. 

Align-003.jpg
Align-003.jpg 182.33 kb, file has never been downloaded. 

Align-004.jpg
Align-004.jpg 151.91 kb, file has never been downloaded. 

Align-005.jpg
Align-005.jpg 175.39 kb, file has never been downloaded. 

Align-006.jpg
Align-006.jpg 181.4 kb, file has never been downloaded. 

Align-007.jpg
Align-007.jpg 129.75 kb, file has never been downloaded. 

Align-008.jpg
Align-008.jpg 196.24 kb, file has never been downloaded. 

Align-009.jpg 254.03 kb, file has never been downloaded. 

Align-010.jpg
Align-010.jpg 204.87 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.
To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

2 (edited by pirvan 2015-12-06 06:04:03)

Re: Aligning multiple angle scans manually

Continued...

Make the second layer visible, then click the "point Based Gluing" button.

http://www.soliforum.com/misc.php?action=pun_attachment&item=9405

A split window opens up showing both the first and the second point cloud.  You will notice that both side will zoom in and out in sync when you use the scroll wheel.  First try to align the 2 views as close as possible, the look for areas on the point cloud that have common reference areas, usually intersections and corners are good reference point. 

http://www.soliforum.com/misc.php?action=pun_attachment&item=9401

Pick a point, and double click on it.  A small blue dot appears with a number next to it.  pick the same point on the other view.  repeat the process in various areas of the model.  A minimum of 4 reference point is needed, but the more you add, the more accurate the alignment will be.

http://www.soliforum.com/misc.php?action=pun_attachment&item=9402

http://www.soliforum.com/misc.php?action=pun_attachment&item=9403

When done selecting the points, click the "Allow Scaling" checkbox.  this lets MeshLab "stretch" one mesh to fit the selected alignment points.  In a perfect world, this wouldn't be necessary, but due to a variety of variables (calibration, perspective, location, depth of view, etc), the meshes are not identical, so a little stretching will be necessary to properly align them.

Repeat the process for the remaining layers.  When all the layers are aligned, click the "Process" button.  When finished look at the last line of the process will show and error number, like this: "error bound 0.0010".  The lower the number, the better the alignment.

http://www.soliforum.com/misc.php?action=pun_attachment&item=9404

Close the  Alignment Tool box, and save the project.  this only saves the data regarding the alignment of the layers, not the individual layers.

Next...

To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

3 (edited by pirvan 2015-12-06 06:18:07)

Re: Aligning multiple angle scans manually

Bring it on Home...

So now we have all the layers properly aligned.  At this point you might want to check the composite cloud to make sure everything is aligned properly, also do a bit more clean up.  Since the composite is still made from multiple layers, we now want to combine all the layers.  This is done by using the "Flatten Visible Layers".

When flattening the layers, you can choose to delete or keep the original layers.  For now, uncheck the "delete layers", and click "Apply".  A new layer will be created out of all the aligned layers.  The new layer will not have any color information.

http://www.soliforum.com/misc.php?action=pun_attachment&item=9406
http://www.soliforum.com/misc.php?action=pun_attachment&item=9407

Check the new payer for any random or stray pixels, and do any clean up that might be needed.

Next up, we'll Compute the Normals for our point cloud, then run the Poisson Surface Reconstruction to generate our new mesh.

http://www.soliforum.com/misc.php?action=pun_attachment&item=9408
http://www.soliforum.com/misc.php?action=pun_attachment&item=9409

And here is the final result.  I hope this helps. 

http://www.soliforum.com/misc.php?action=pun_attachment&item=9410

Post's attachments

Align-011.jpg
Align-011.jpg 193.67 kb, file has never been downloaded. 

Align-012.jpg
Align-012.jpg 176.79 kb, file has never been downloaded. 

Align-013.jpg 196.66 kb, file has never been downloaded. 

Align-014.jpg 205.74 kb, file has never been downloaded. 

Align-015.jpg
Align-015.jpg 135.44 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.
To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

4

Re: Aligning multiple angle scans manually

Here is a screen shot of the model in a tilted position.  Notice the wire propping it up.

http://www.soliforum.com/misc.php?action=pun_attachment&item=9411

Post's attachments

Align-000.jpg
Align-000.jpg 179.73 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.
To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

5

Re: Aligning multiple angle scans manually

Very nice now all I need is to somehow get the lens unglued as it is way out of focus
Unless you know of anyone that sells the camera with adjustable lens.
As I am a noob to all this I find your instructions very helpfull so thank you.
Bill

D4S + S3d 18 months and still learning
Filastruder

6

Re: Aligning multiple angle scans manually

Hi Pirvan when you say 5MP is it video or still mode as when I try video mode I get a complete camera lockup eg. Just a red cross on the screen and have to reset to 1.9 or lower then reboot to get the camera back.
I also changed the steps to 1600 but then the table only turned half way
So being a noob it looks like I am doing something wrong.
Thanks for all you input
Bill

D4S + S3d 18 months and still learning
Filastruder

7

Re: Aligning multiple angle scans manually

The scans in this tutorial were done at 5MP still mode & 1600 steps per revolution.

This is a somewhat "advanced" tutorial on post scan mesh/point cloud manipulation, and assumes you have a properly working scanner.

I think you probably need to go back to the basics and get the scanner working correctly first.  I see you already started a thread on the camera, you should also ask your questions about why you're having problems with the high res scans and the turntable turning off mid-scan.

To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

8

Re: Aligning multiple angle scans manually

Thank you again for the tutorials.
I really appreciate your dedication and taking the time to post them.

9

Re: Aligning multiple angle scans manually

This a great tutorial, Pirvan. Well done and i hope to get my first scans soon as I have purchased a 2nd hand Atlas smile