8

Does someone have an implementation of Iterative Closest Point (ICP) algorithm for two dimensions (2D) in R?

Here is an attempt in c#
Iterative Closest Point Implementation
Here is a more general question
iterative closest point library

This is to match two sets of points through translation and scaling.

Community
  • 1
  • 1
Etienne Low-Décarie
  • 13,063
  • 17
  • 65
  • 87

4 Answers4

4

Spacedman's comment is probably best. You might also take a look at http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=12627&objectType=file for a matlab implementation. Assuming it works ok, translating Matlab to R code is relatively easy.

Carl Witthoft
  • 20,573
  • 9
  • 43
  • 73
  • True! I am still lazily hoping that someone out there has done the leg work to bring this into R. There also a few comments of problems with the matlab code. – Etienne Low-Décarie Jun 04 '12 at 23:59
3

This is somewhat of an answer in the form of a non-answer.

There are many variants of ICP. The design choices are at least partially organized by the late 90's Ph.D. work of Pulli and by Rusinkiewicz & Levoy. If you're going to be using ICP for anything remotely important (translation: "more than just a class assignment"), you should understand the tradeoffs.

Thus, it's probably best to take one of the existing implementations and port it to R.

Chris A.
  • 6,817
  • 2
  • 25
  • 43
2

3 Years too late, but there is the function icpmat in the package Morpho by the same guy who wrote Rvcg. I don't know which variant is implemented though.

Link: https://github.com/zarquon42b/Morpho

zerweck
  • 657
  • 7
  • 14
1

There is a self-contained (as far as I can tell) C++ implementation of ICP here. Maybe you can create your own R wrapper around this C++ code.

Anders Gustafsson
  • 15,837
  • 8
  • 56
  • 114