bing-jian / gmmreg

Implementations of the robust point set registration algorithm described in "Robust Point Set Registration Using Gaussian Mixture Models", Bing Jian and Baba C. Vemuri, IEEE Transactions on Pattern Analysis and Machine Intelligence, 2011, 33(8), pp. 1633-1645. For a Python implementation, please refer to http://github.com/bing-jian/gmmreg-python.
GNU General Public License v3.0
299 stars 96 forks source link

Uncomment required lines in _core.py #2

Closed JeroenDelcour closed 4 years ago

JeroenDelcour commented 8 years ago

In _core.py, the following two lines are commented out:

# from _extension import *
# import _plotting

However, it seems _extension contains a function called gauss_transform which is required to run the example gmmreg.test('fish_partial.ini') stated in the readme.

Simply uncommenting worked for me, but being relatively new to compiling Python code, it took me a bloody long time to figure it out. To make it easier for future dwellers, I recommend these lines be uncommented :)

bing-jian commented 8 years ago

Thanks. Will take a look and make changes accordingly.

MelodyWang1314 commented 8 years ago

Dear Bing-jian: I am so confused that data "fish_X_nohead" and "fish_ynotail" have poor performance on point set registration. For what reason? weather should I set some good initial value?

Thanks!

image

@bing-jian

MelodyWang1314 commented 8 years ago

Dear Bing-jian:

Thanks for your kindness to answer my question so soon. Maybe I have some wrong operations . I use the main,m to run the program. The main.m is as follows:

Thank you very much! image

addpath(genpath(pwd)) model = textread('C:\Users\Administrator\Desktop\gmmreg-master\data\fish_data\fish_X_nohead.txt'); scene = textread('C:\Users\Administrator\Desktop\gmmreg-master\data\fish_data\fish_Y_notail.txt'); [config] = initialize_config(model,scene,'tps'); [param, transformed_model, history, config] = gmmreg_L2(config); figure(1) DisplayPoints2D(model,scene); figure(2) DisplayPoints2D(transformed_model,scene);

bing-jian commented 4 years ago

Now there is a new repo for the Python implementation of gmmreg: https://github.com/bing-jian/gmmreg-python And this one should work for Python 3. If not, please let me know. Thanks!