Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncomment required lines in _core.py #2

Closed
JeroenDelcour opened this issue Nov 8, 2015 · 4 comments
Closed

Uncomment required lines in _core.py #2

JeroenDelcour opened this issue Nov 8, 2015 · 4 comments

Comments

@JeroenDelcour
Copy link

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
Copy link
Owner

Thanks. Will take a look and make changes accordingly.

@MelodyWang1314
Copy link

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

Thanks!

image

@bing-jian

@MelodyWang1314
Copy link

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
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants