Agisoft Metashape

Agisoft Metashape => General => Topic started by: Dmitry Semyonov on February 28, 2018, 01:16:47 PM

Title: New alignment parameter for background suppression
Post by: Dmitry Semyonov on February 28, 2018, 01:16:47 PM
New alignment parameter was added in PhotoScan 1.4.1 release. It makes possible to suppress background from alignment procedure with few or even with a single mask. This can be helpful in turntable-like shooting scenario.
 
You can read tutorial and tool description and take a look at examples in blog post (http://www.agisoft.com/index.php?id=49).
 
Please let us know if you have any problems using this tool.
Title: Re: New alignment parameter for background suppression
Post by: SAV on March 02, 2018, 02:44:37 AM
Great new feature  ;D

Thanks a lot.
Title: Re: New alignment parameter for background suppression
Post by: Kiesel on March 05, 2018, 02:17:36 PM
That simplifies the work with such image sets a lot, great, thanks!
Title: Re: New alignment parameter for background suppression
Post by: sastun1962 on March 07, 2018, 01:37:34 PM
Hi to all,
I cannot have the same result as in the "banana" tutorial. Why? It's possible to se a step by step video with the procedure of alignement please?
Thanks in advance
Title: Re: New alignment parameter for background suppression
Post by: Alexey Pasumansky on March 07, 2018, 02:27:41 PM
Hello sastun1962,

What are the problems?

The workflow is simple:
- add all photos from the set,
- apply mask to the complete image IMG_6085.JPG,
- run Align Photos operation: High accuracy, Generic Preselection, key point limit - 40 000, tie point limit - 10 000, apply masks to - Tie Points, adaptive camera model fitting - enabled.
As a result you'll get the similar sparse cloud like on the screenshots on the article page.
Title: Re: New alignment parameter for background suppression
Post by: sastun1962 on March 07, 2018, 02:32:05 PM
Hi Alexey,
- if I try to use your banana project the cameras are always in the unique position and dont are "around" the banana
- if I try with a new proyect the alignement is impossible....

what I do wrong?
Title: Re: New alignment parameter for background suppression
Post by: Alexey Pasumansky on March 07, 2018, 02:34:50 PM
Hello sastun1962,

Can you provide the logs related to Align Photos operation for both runs?
Title: Re: New alignment parameter for background suppression
Post by: sastun1962 on March 07, 2018, 04:47:40 PM
Hi Alexey how can I do it please?
:-)
Title: Re: New alignment parameter for background suppression
Post by: Alexey Pasumansky on March 07, 2018, 05:01:48 PM
Hello sastun1962,

After processing you can copy the information from the Console pane (to enable the pane use corresponding option in View menu).
Title: Re: New alignment parameter for background suppression
Post by: lein77 on March 08, 2018, 03:21:34 PM
This looks like a great feature! But I do have some questions about the actual steps one has to take. Do you make the masks in photoshop? Do you run them on the entire set of photo's or just on a few? I assume you have to import the masks in Photoscan?
Title: Re: New alignment parameter for background suppression
Post by: PolarNick on March 14, 2018, 02:06:57 PM
You can read about masking here (http://www.agisoft.com/index.php?id=48).

Also note that magic wand can be used in incremental style with multiple clicking while holding Ctrl.
Title: Re: New alignment parameter for background suppression
Post by: Nightingale on May 20, 2018, 05:53:18 PM
Hi,

In Photoscan 1.4.1 Pro, I have no access to this feature as shown on the screenshot.
How do I proceed ?

Thanks.

Title: Re: New alignment parameter for background suppression
Post by: Dave Martin on May 21, 2018, 10:11:46 AM
Nightingale,

Have you got at least one mask loaded? I'm not in front of my PhotoScan machine at present to try it, but I wouldn't be surprised if 'Apply masks to' was fixed at 'None' if there weren't any masks imported and hence no masks to apply.

Dave
Title: Re: New alignment parameter for background suppression
Post by: Nightingale on May 21, 2018, 11:10:33 AM
Hi thanks for reply.

I have 271 photos.
I made and loaded the 271 masks.
And now I can change the field "Apply masks to".

Thanks again !
Title: Re: New alignment parameter for background suppression
Post by: Dave Martin on May 21, 2018, 11:49:26 AM
Glad it helped and thanks for the feedback.

Dave
Title: Re: New alignment parameter for background suppression
Post by: Alexey Pasumansky on May 21, 2018, 05:29:54 PM
Hello Nightingale,

If you have a complete set of accurate masks, then it is reasonable to use Apply Masks to Key points option (works like former "constrain features by mask" option), the new option should be used if you have only a few masks applied that cover the background.
Title: Re: New alignment parameter for background suppression
Post by: Smallpoly on May 22, 2018, 09:24:06 PM
Just tried out the new masking approach. This is awesome and removes so much redundancy! Really clean scan too!

Model: https://sketchfab.com/models/2ad8fa7c276b43e1a3d3cfa130d96dc9
Data Set Examples: https://imgur.com/a/JOjNgH5

(https://i.imgur.com/9g5Rd2y.jpg)
Title: Re: New alignment parameter for background suppression
Post by: Alain on May 23, 2018, 12:52:02 PM
Hi

The Banana-Set works fine for me.

But my own test does not work well.
In addition to the Backgroundimage I added a few more masks.

One thing confuses me:
Photoaligning with "Medium" accuracy uses all photos but photoaligning with "High" accuracy only uses half of the photoset.

Any idea what I do wrong ?

Kind regards
Alain



Title: Re: New alignment parameter for background suppression
Post by: Smallpoly on May 30, 2018, 08:29:26 PM
I'm not associated with Agisoft, but I can take a look if you feel like PMing me your photo set.

Just from the photos, it would probably help the results to take the shot from the other side, so you're getting the more brightly lit side, but it could be plenty of other things too.
Title: Re: New alignment parameter for background suppression
Post by: Mak11 on July 08, 2018, 09:28:04 PM
This has never worked for me. Banana set works but mines simply never work which is really frustrating to say the least..I even tested it with exactly the same setup with my own banana and it doesn't work...it's maddening.
Title: Re: New alignment parameter for background suppression
Post by: Alexey Pasumansky on July 09, 2018, 12:30:39 PM
Hello Mak11,

Maybe you can share any problematic image set and send it to support@agisoft.com, so that we could check what is wrong with the approach?
Title: Re: New alignment parameter for background suppression
Post by: Mak11 on July 09, 2018, 01:17:09 PM
Alexey,
After some more thinking I may have found the issue on my side. Will have to confirm it by shooting some more test scenes and see if it finally works now. Will keep you up do date.
Title: Re: New alignment parameter for background suppression
Post by: Mak11 on July 09, 2018, 02:57:22 PM
Hello Mak11,

Maybe you can share any problematic image set and send it to support@agisoft.com, so that we could check what is wrong with the approach?

Alexey

I've just sent you a mail with a photoset.

Cheers
Title: Re: New alignment parameter for background suppression
Post by: Alexey Pasumansky on July 09, 2018, 03:30:44 PM
Hello Mak11,

Thank you for sharing the dataset.

I've sent you back the project file with the alignment results I've got following the approach described in the blog-tutorial.

I've used the following steps:
- added all images to the same chunk, including the background image,
- applied mask to the background image only (DSC07632.JPG) - mask covered full image completely,
- run Align Photos operation (High accuracy, Generic preselection, key/tie point limits 40 000 / 10 000, and the most important Apply Masks to Tie Points),
- then run Build Mesh operation using new (experimental) meshing option using Medium quality depth maps.

Can you please try to reproduce the same workflow on our side and let me know, if the approach works? If so, then the result could be improved by improving the quality of the input images, for example, but using the image frame space more effectively, since currently the banana occupies less than 5% of the image image space, so from 13 MPix less than 1 MPix is actually used due to the applied mask.
Title: Re: New alignment parameter for background suppression
Post by: shantu2018 on July 23, 2018, 10:52:37 AM
I took a total of four photos. But when they are aligned, they are always at a height. But when I shoot the pears, they can be well aligned.
Title: Re: New alignment parameter for background suppression
Post by: zagnimarco1 on July 29, 2018, 10:58:51 PM
Hello i have the problem that the  photos of banan example don't align, i had masked  the entire first  photos  but  don't works, this is the log:2018-07-29 21:15:52 Agisoft PhotoScan Standard Version: 1.4.3 build 6529 (64 bit)
Unlucky  i cannot post the log because it exceed the 2000 characters.

Title: Re: New alignment parameter for background suppression
Post by: zagnimarco1 on July 29, 2018, 10:59:24 PM
Hello i have the problem that the  photos of banan example don't align, i had masked  the entire first  photos  but  don't works, this is the log:2018-07-29 21:15:52 Agisoft PhotoScan Standard Version: 1.4.3 build 6529 (64 bit)
Unlucky  i cannot post the log because it exceed the 2000 characters.
May be the "unable to load openCl"  is the guilty?
I tried to disable  from 6121 to   6128 and  the camera over banana seem aligned
Hallo i think to have solved , the mask was inverted,i tought  agis have to see the point of the table, i was wrong.

Title: Re: New alignment parameter for background suppression
Post by: bassistas on January 06, 2019, 07:49:26 AM
Does this method also apply when you take photos of an object on a turntable and with the camera changing positions on the z axis? or is this only for static backgrounds and only with the object changing positions?
Title: Re: New alignment parameter for background suppression
Post by: bestable on April 21, 2020, 05:23:36 PM
Does this method also apply when you take photos of an object on a turntable and with the camera changing positions on the z axis? or is this only for static backgrounds and only with the object changing positions?
any notes on this question from developers?
Title: Re: New alignment parameter for background suppression
Post by: PolarNick on April 21, 2020, 05:59:44 PM
Yes, it works. I scanned an object on turntable from three angles (i.e. three circles of photos) and for each angle I just additionally took photo without object (i.e. photo of clean turntable + background). Then I masked these three photos fully and applied masks to tie points.
Title: Re: New alignment parameter for background suppression
Post by: bestable on April 21, 2020, 06:26:52 PM
That is not working with this pretty clean dataset:
https://www.agisoft.com/forum/index.php?topic=12106.msg54112#msg54112
Title: Re: New alignment parameter for background suppression
Post by: PolarNick on April 21, 2020, 06:44:01 PM
I can't find how to download all images. Can you please help me? I want to try.
Title: Re: New alignment parameter for background suppression
Post by: bestable on April 21, 2020, 06:49:33 PM
Updated that thread.
Title: Re: New alignment parameter for background suppression
Post by: PolarNick on April 21, 2020, 09:47:01 PM
Thanks! I answered there. Sadly it is still not in one click :(