Forum

Author Topic: Iterative Closest Point Algorithm  (Read 27231 times)

mattabao

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Iterative Closest Point Algorithm
« Reply #15 on: July 05, 2023, 12:51:35 PM »
Hi PolarNick,

thank you for your script. But after it was installed and run it, an error occured which says

Traceback (most recent call last):
File "C:/Users/kouzoulab/Downloads/align_model_to_model.py", line 497, in align
self.chunk.exportPoints(path=filename,
AttributeError: 'Metashape.Chunk' object has no attribute 'exportPoints'

can you help me with this please?

please see attachment

PolarNick

  • Full Member
  • ***
  • Posts: 108
    • View Profile
Re: Iterative Closest Point Algorithm
« Reply #16 on: July 05, 2023, 07:01:52 PM »
Hi mattabao,

please try updated version, now it should work.

mattabao

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Iterative Closest Point Algorithm
« Reply #17 on: July 06, 2023, 05:02:24 AM »
Thank you, PolarNick! your code is now working.
But, the result of combining my model is not good. Should I move the two models close to each other or should I make an initial alaignment before running your script?

mattabao

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Iterative Closest Point Algorithm
« Reply #18 on: July 06, 2023, 05:10:01 AM »
PolarNick,

in addition, I did not input value in scale ration and target resolution. is this necessary to input value? what value shoul I input then?
What does target resolution mean?

PolarNick

  • Full Member
  • ***
  • Posts: 108
    • View Profile
Re: Iterative Closest Point Algorithm
« Reply #19 on: July 06, 2023, 12:22:27 PM »
You can read about these optional parameters here and here

PolarNick

  • Full Member
  • ***
  • Posts: 108
    • View Profile
Re: Iterative Closest Point Algorithm
« Reply #20 on: July 06, 2023, 02:21:24 PM »
Also note that there are tooltips - just hover mouse above parameter fields, or you can read them here