1
Python and Java API / Is the Magic Wand masking tool available in the Python API
« on: October 17, 2019, 06:16:04 PM »
Hi, this question was asked a couple years back (https://www.agisoft.com/forum/index.php?topic=8165.msg39080#msg39080), but didn't get a response then, so I thought I'd try again.
I have several tens of thousands of photogrammetric images, each with a black (or nearly-black) collar on them, and I want to mask out the collar. The collar-edge locations are not identical between each image. The Magic Wand tool works beautifully to do this in the AgiSoft Photoscan Pro UI, but I can't find any documentation or evidence that the tool exists in the Python API. What I'd ideally like to do is:
My setup:
- Mike
I have several tens of thousands of photogrammetric images, each with a black (or nearly-black) collar on them, and I want to mask out the collar. The collar-edge locations are not identical between each image. The Magic Wand tool works beautifully to do this in the AgiSoft Photoscan Pro UI, but I can't find any documentation or evidence that the tool exists in the Python API. What I'd ideally like to do is:
- Give it a numerical pixel location as the seed (same a clicking that pixel in the interface)
- Create my mask for each image, and
- Save the mask for each image.
My setup:
- Agisoft Photoscan Pro 1.4.5 with the Python 3.5 back-end.
- Ubuntu 18.04.3
- Mike