Hi,
The Surface Registration module which is part of the CMFreg extension uses vtkIterativeClosestPointTransform. You can look into the details in the following links.
Surface registration python script
import os
from __main__ import vtk, qt, ctk, slicer
from slicer.ScriptedLoadableModule import *
import logging
import time
import numpy
import json
#
# SurfaceRegistration
#
class SurfaceRegistration(ScriptedLoadableModule):
"""Uses ScriptedLoadableModule base class, available at:
https://github.com/Slicer/Slicer/blob/master/Base/Python/slicer/ScriptedLoadableModule.py
"""
def __init__(self, parent):
ScriptedLoadableModule.__init__(self, parent)
self.parent.title = "Surface Registration"
This file has been truncated. show original
vtkIterativeClosestPointTransform
https://www.vtk.org/doc/nightly/html/classvtkIterativeClosestPointTransform.html#details
HTH,
Andinet
2 Likes