You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue documents an attempt at solving the problem in issue #1: that the stitching software, in this case, Agisoft Metashape, does not provide us with information about how it stitched the images together.
Well, it turns out this information is, in fact, available via Metashape's python module. Googling around has indicated that Metashape offers exporting of the "transformation matrix" associated with each "camera" via its python module. You should look into this.
Also, according to an email thread with Agisoft's Support Team, you can create "footprints" for the stitched images and then export them as "shapes in the geographic coordinates." I'll have to look up these quoted terms, which I'm guessing only Agisoft users are familiar with.
Supposedly, you can also export "shape" information for each "orthomosaic block" by clicking on the "Export Orthomosaic" > "Write Tile Scheme" menu option.
Hopefully, one of these options will be helpful. I'll look into them when I get a chance.
The text was updated successfully, but these errors were encountered:
I was able to get Metashape's python module up and running. Then, I found an old Photoscan psx file and used it as test data.
I ran the following python code in the directory with the psx file.
In the Metashape Python module documentation, this value is referred to as the "4x4 matrix describing photo location in the chunk coordinate system." In order to get a better intuition for what that meant, I read the section entitled "4x4 Matrix Visualized as a Cartesian Coordinate System" in this article.
Although this looks promising, I'm not yet sure whether it is the data we want. But I am at least more confident that spending time with Metashape will give us a viable solution. There are so many functions and attributes available in the Metashape python module documentation, that I'm pretty sure we're bound to get something useful out of this approach.
Another thing to consider
Let's say we're able to figure out exactly how Agisoft stitched the images together. Then we'll still need to somehow apply those transformations to the classification mask that corresponds to that image. How will we do that? Is there a way to do it with the python module or the Metashape GUI? This still seems like a difficult project in itself. You should look into this. Update: turns out that the attributes of each image are settable, so we could probably transform the classification masks using Agisoft's python module in the same way we do the images?
This issue documents an attempt at solving the problem in issue #1: that the stitching software, in this case, Agisoft Metashape, does not provide us with information about how it stitched the images together.
Well, it turns out this information is, in fact, available via Metashape's python module. Googling around has indicated that Metashape offers exporting of the "transformation matrix" associated with each "camera" via its python module. You should look into this.
Also, according to an email thread with Agisoft's Support Team, you can create "footprints" for the stitched images and then export them as "shapes in the geographic coordinates." I'll have to look up these quoted terms, which I'm guessing only Agisoft users are familiar with.
Supposedly, you can also export "shape" information for each "orthomosaic block" by clicking on the "Export Orthomosaic" > "Write Tile Scheme" menu option.
Hopefully, one of these options will be helpful. I'll look into them when I get a chance.
The text was updated successfully, but these errors were encountered: