Forum

Author Topic: Photoscan giving me (two) different alignment point clouds (Bug?)  (Read 24159 times)

3D_Scan_Fan

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Hi guys, I dont know how else to explain this but I've been haivng some trouble with Photoscan recently.

After having taking photos of my subject by rotating around him three times resulting in 120 photos from all angles I load them up into Photoscan and in the beginning the alignment of the point cloud was terrible, it was almot like there was two face going on here, I really didnt know what to do.

Then I changed some settings on the Key Points and Tie Points which resulted me in a much more dense but sligtly more accurate result which gave me a point cloud with great alignment, very little overlap, I thought I got the right preferences correct in my settings. Then when I attempted to redo this again I once again got a horrible result which I am now stuck on and cant think of how I managed to get the better one.

The only time I managed to duplicate this result again is when I loaded a new batch of (the same) photos with different colour corrections applied. I saved it as soon as I saw a good result, but when I restarted everything again (without changing any of the settings) I got a bad alignment again.

This is really frustrating as the process of each stage is incredibly time consuming (literally leaving my computer on over many nights!) I dont understand what is going on here, I had it right early on and then it changed.

Can someone help me out here?

bigben

  • Sr. Member
  • ****
  • Posts: 406
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #1 on: March 21, 2015, 09:32:53 AM »
When you start an alignment from scratch there is no information about camera positions.  If you've already run the process once, then you are starting with the previously calculated camera positions. You can reset the cameras via a right click on the camera folder.

If you get what appear to be multiple copies of part of the model, then you have a couple of groups of cameras that have aligned amongst themselves, but there are no links between the groups.  Adding control points in those areas should help adjust the camera positions.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #2 on: March 22, 2015, 02:32:32 PM »
Instable alignment results is usually caused by the input data problems, like lack of overlap, insufficient texture pattern on the object being scanned and/or quality of images.

If you can post some examples of the input images and correct/bad alignment results for the same project, it will be helpful.
Best regards,
Alexey Pasumansky,
Agisoft LLC

3D_Scan_Fan

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #3 on: March 23, 2015, 01:25:30 AM »
When you start an alignment from scratch there is no information about camera positions.  If you've already run the process once, then you are starting with the previously calculated camera positions. You can reset the cameras via a right click on the camera folder.

If you get what appear to be multiple copies of part of the model, then you have a couple of groups of cameras that have aligned amongst themselves, but there are no links between the groups.  Adding control points in those areas should help adjust the camera positions.

Is there a tutorial on how to do this? I've even done this by start afresh, a new project and doing everything from scratch, closing the program and restarting it (including the PC). I just dont understand how one go it would go bad, and another go at doing the exact same thing with small tweaks resulted in something different (better) and from there nothing seemed to duplicate that result again.

Instable alignment results is usually caused by the input data problems, like lack of overlap, insufficient texture pattern on the object being scanned and/or quality of images.

If you can post some examples of the input images and correct/bad alignment results for the same project, it will be helpful.

Yeah sure, I did as quick printscreen of all the thumbnails of the photos I used (c&p them in photoshop as it's 120 altogether), hope this gives you a better idea.



the one on the left is the better (upon closer inspection there is definitely some overlapping but is very minor, so much that it aligned pretty damn well. The one on the right is obviously what I am having trouble with, especially when using the same settings/preferences and no way to get the same result without somesort of luck.


Wishgranter

  • Hero Member
  • *****
  • Posts: 1202
    • View Profile
    • Museum of Historic Buildings
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #4 on: March 23, 2015, 02:27:59 AM »
try mask out all except the head..... and report back....
----------------
www.mhb.sk

3D_Scan_Fan

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #5 on: March 23, 2015, 03:26:44 AM »
I have to mask all 120 photos???

Also when I do the Align Photos process which gives me the sparse point cloud, it gives me detail of the backgrounds and etc. all of which I delete all of them points before I go ahead creating the Dense Point Cloud. Would this be the same or perhaps not?

bigben

  • Sr. Member
  • ****
  • Posts: 406
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #6 on: March 23, 2015, 03:43:06 AM »
Yes, all 120 photos.  Deleting points in the sparse cloud is not the same.

Tried a similar thing once. Shooting close to the back of the head can be problematic as well. Better to include more shoulder to help with the alignment. I'm guessing that's what caused your "double object"

3D_Scan_Fan

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #7 on: March 23, 2015, 04:19:09 AM »
Hmmm, then should I try aligning the photos again but removing the ones that contain a large portion of the back of the head?

bigben

  • Sr. Member
  • ****
  • Posts: 406
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #8 on: March 23, 2015, 09:11:49 AM »
You could try disabling them rather than removing them ... or possibly move them to a new chunk and see if they align to each other, then align and merge the two chunks. 

James

  • Hero Member
  • *****
  • Posts: 748
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #9 on: March 23, 2015, 01:02:58 PM »
try mask out all except the head..... and report back....
I have to mask all 120 photos???

To mask quickly, create a quick mesh of the head only on low settings, and then Tools->Imprt Mask -> from model. Then try aligning the photos again with 'constrain features by mask'.

This might give you a better alignment so you can create a better mesh and then import even better masks from that model.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #10 on: March 23, 2015, 02:38:40 PM »
Hello 3D_Scan_Fan,

I think that the following video would be useful for you:

http://www.zbrushworkshops.com/content/jeffrey-wilsons-photogrammetry-webinar-replay
Best regards,
Alexey Pasumansky,
Agisoft LLC

3D_Scan_Fan

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #11 on: March 26, 2015, 07:09:07 AM »
You could try disabling them rather than removing them ... or possibly move them to a new chunk and see if they align to each other, then align and merge the two chunks.

Well I always start a new project and only add the ones I need (all projects have a different filename). Anywa I did this by excluding the back of the head as much as I can from the different angles I took (Eye-Level, Low-angle & High-angle), and despite a big mess point cloud behind my subject, the results already look very impressive!

How do I go about aligning the different chunks and at what stage?

try mask out all except the head..... and report back....
I have to mask all 120 photos???

To mask quickly, create a quick mesh of the head only on low settings, and then Tools->Imprt Mask -> from model. Then try aligning the photos again with 'constrain features by mask'.

This might give you a better alignment so you can create a better mesh and then import even better masks from that model.

I will give the masking a go soon, I just dont have the time to ask all 120 photos with such precision, I want the contours, edge of the head as close as possible and I feel doing a hand masking process would interfere with that, but nver saying never!

Hello 3D_Scan_Fan,

I think that the following video would be useful for you:

http://www.zbrushworkshops.com/content/jeffrey-wilsons-photogrammetry-webinar-replay

That was really good stuff there, thanks for sharing that! The first 55mins explained and taught me alot of things already and was getting better results with it, however I am still ending up with a slightly noisy mesh, maybe because I am processing everything at High/UltraHigh quality?

What I have been doing as well beforehand was only doing one side at a time, thus half a head, generate a point cloud and mesh for each side and then merge/align them later in Geomagic Studio, is this a good idea perhaps guys? :D

3D_Scan_Fan

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #12 on: March 27, 2015, 07:24:45 AM »
Guys? Anyone??

James

  • Hero Member
  • *****
  • Posts: 748
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #13 on: March 27, 2015, 12:50:59 PM »
I will give the masking a go soon, I just dont have the time to ask all 120 photos with such precision, I want the contours, edge of the head as close as possible and I feel doing a hand masking process would interfere with that, but nver saying never!

It only takes a minute or two to import masks from model, no precision needed, and then 95% of your background will be gone and you will have a better idea of where your problem is.

Because you took the shots with a single camera (i assume) the subject would have moved considerably during that time whereas (hopefully) the buildings in the background remained static. The buildings in the background fill more of the frame than the subject does so photoscan maybe makes more effort to align those properly and lets the actual subject alignment slip.

Even if you just create a basic single mask that only masks the right and left 33% of each image then you will probably get rid of enough background to improve your alignment, like the attached.

(Just create the mask manually in one photo, then export it and finally import it for all cameras)

3D_Scan_Fan

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: Photoscan giving me (two) different alignment point clouds (Bug?)
« Reply #14 on: March 28, 2015, 07:21:25 AM »
Well what I did was I went ahead and made a very very rough mask by using all the shots combined together and making them transparent so I could see through each one roughly in Photoshop. I then would Lasso around the subject thus creating a mask which I then saved as a PNG with an Alpha channel. In some places it would cut out or into the subject but this was only a rough to see what will happen.

I did this for each angle (three altogether) and ran Align Photos, the results were outstanding! Everything seemed to have aligned almost perfectly, and nomore weird overlapping or seeing double :D The same goes for when generating the Dense Point Cloud (after doing some gradual selection of point and removing them).

Because of this, I have now taken the liberty to mask each of 120 photos and creating a mask png file. The mask itself is just a very loose constraint and outline but much more accurate than the previous since this doesn't cut off any part of the subject, My hand is very sore from this, it took me over 2 hours to do this! Very very tedious and repetitive, loosing my mind abit too. I hope this will be worth it since I just finished doing this.

However what I did notice, even though achieving a much superior result is that my generated model is still quite noisy, my photos are well exposed and shot at the lowest ISO (160) and even the noise within the photos was cleaned up, I don't know what could be causing a bumpy mesh :(