Forum

Author Topic: Cylindrical projection with markers  (Read 5312 times)

Johnh2

  • Newbie
  • *
  • Posts: 2
    • View Profile
Cylindrical projection with markers
« on: June 19, 2025, 01:08:27 PM »
I am trying to build orthomosaics of pipelines using a cylindrical projection of pipes.

I use external python scripts to fit a cylinder to the point cloud, finding its axis and radius. I then want to be able to enter this axis and radius back into Metashape to generate the orthomosaic, but I am unable to enter free floating markers, getting the error 'Location of marker point X is undefined'.

Does anyone have any ideas how I could do this?

Many thanks.

https://drive.google.com/file/d/1ztNjd9m7nMhMo3NIA3kLfU9ykTtXcQFC/view?usp=sharing






vineg

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: Cylindrical projection with markers
« Reply #1 on: June 19, 2025, 05:08:27 PM »
Hi!

You can run following command in python console before building an orthomosaic:

Code: [Select]
Metashape.app.document.chunk.transform.matrix = Metashape.Matrix.Diag((1,1,1,1))
The reason you are getting this error is that project is not referenced and model coordinates are considered unknown and thus can't be tied to marker coordinates.
Code line mentioned above sets project to use these internal local coordinates. Note that all measurements will be still invalid, since internal coordinate system is arbitrary.

Johnh2

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Cylindrical projection with markers
« Reply #2 on: June 20, 2025, 01:22:53 PM »
That works! Fantastic, thank you!!