Example code procrustesAlignment.py does not work
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The example code Examples/Modelling/Python/procrustesAlignment.py does not display results for all aligned shapes correctly. Also, following warnings can be seen in the output: ... ERROR: In /scratch/Oncomorph/3rdParty/VTK/Filtering/vtkAlgorithm.cxx, line 730 vtkProcrustesAlignmentFilter (0x825cf28): Attempt to connect input port index 1 for an algorithm with 1 input ports. ...
Problem seems to get fixed by changing:
procrustes2.SetInputConnection(1, transformer1.GetOutputPort()) --> procrustes2.SetInput(1, transformer1.GetOutput())
for all procrustes filter input/output connections.
br. J-V Juntunen