Hey guys,
I use Photoscan a lot for UAV-Photogrammetry and it's always taking ages to mask the images when taking a few thousand pictures.
My idea was to add a mask to all pictures by selecting pre-aligned sparse points.
Here the idea for an algorithm:
- Add images, align them (this should be accuate enough)
- View sparse cloud and select all points from the area or the object you want to reproduce.
- click button 'add mask by object'
- go through every picture and find corresponding projection points.
- calculate hull of these projected points (needs to be a concave hull)
- the computed hull is the polygon which is the base for an inverted mask
- add inverted mask to image
- options: add factor to adjust the size of the polygon which is found in every image
afte that, re-calculate the new sparse from images and do your work.
I think this would help a lot of people and should not be very hard to programm. Just a pythin script for your wiki would be great.
What do you think about that?
All the best