Forum

Iterative Closest Point Algorithm

Started by jtheule, September 27, 2019, 03:02:17 PM

Previous topic - Next topic

mattabao

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

Hi mattabao,

please try updated version, now it should work.

mattabao

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

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

You can read about these optional parameters here and here

PolarNick

Also note that there are tooltips - just hover mouse above parameter fields, or you can read them here