Hello Jordan,
I think that the problem is caused by the fact, that the custom projection matrix is not saved to the exported orthomosaic raster file, so when the import is performed, Metashape doesn't have any information regarding the projection plane.
It might be possible to create custom scripts for export and import of the planar orthomosaic, that will store the projection matrix used for the orthomosaic generation and will consider it for the orthomosaic import.
Do you perform any editing to the exported orthomosaic or what is the purposes or importing it back?
Hi Alexey, that makes sense; does that mean that if the scene is georeferenced using images with GPS information then this problem should no longer occur?
I'm looking to transfer information (modified pixel colors) made on the orthomosaic (after being exported) on to the dense cloud and mesh. Previously I was transferring that information by:
Orthomosaic -> Images -> Dense -> Mesh
But after seeing that Metashape already has an option to colorize the dense and mesh directly via the orthomosaic I've decided to try this route (the latter is also much faster than my previous method, which relies on depth maps and pickPoint). Because these methods do not use a GPU they were a bit slow, but they worked. I have a couple of follow up questions if you don't mind:
- Are there existing functions within MS API that will assist in exporting an orthomosaic with the local coordinate system transformation matrix? If not, I can also look at importing the modified orthomosaic and using the transformation matrix of the original orthomosaic or DEM still within the project (same thing, just different order of operations). Essentially, I need to transfer the transformation matrix from the original orthomosaic or DEM to the modified orthomosaic so I can use the Tasks ColorizeDense and ColorizeVertices...
- If the above doesn't work out, is there a way to modify a point's color within the dense point cloud given the coordinates of the point? I don't recall any functions that give access to the dense point cloud points... If not, I guess I can always export and read it in as a numpy array?
@robotguy16 this post may be of use to you:
https://www.agisoft.com/forum/index.php?topic=14565.msg64050#msg64050