Model fitting with Iterative Closest Points

50 views
Skip to first unread message

Xiang Li

unread,
Feb 18, 2020, 11:06:20 AM2/18/20
to scalismo-faces
Hi,

What I would say now is: I listened to the advise from Dr. Egger. He suggested me went through the tutorial of scalismo. It is really helpful!!!! You will know what you should do for your project! Thank you very much Dr. Egger.

I got an error when I ran the "Model fitting with Iterative Closest Points". I wanted to use BFM2019 model to do the registration. When I import BFM2019's .h5 file using the code:

val model = StatismoIO.readStatismoMeshModel(new File("datasets/2019.h5")).get
show(model, "model")

, I got this error message:

Screenshot from 2020-02-18 11-03-40.png







Would that because I scalismo-lab doesn't compatible with new model? Or I have to download the entire scalismo to run the new BFM2019?

Thank you again Dr. Egger. The tool is fantastic!

Best,
Xiang Li
Screenshot from 2020-02-18 11-03-40.png

Andreas Forster

unread,
Feb 18, 2020, 12:12:07 PM2/18/20
to Xiang Li, scalismo-faces
Hi Xiang Li,

to load the BFM you actually need not only scalismo but also scalismo-faces. You can find instructions on how to get started on https://github.com/unibas-gravis/scalismo-faces . In scalismo-faces you then have the class MoMoIO that you can use to read the BFM.

Best, Andreas


--
You received this message because you are subscribed to the Google Groups "scalismo-faces" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalismo-face...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo-faces/c0856a0f-c8ee-468e-bef5-919fb2d56cc7%40googlegroups.com.


--
*****************************************
Dr. Andreas Morel-Forster
Departement Mathematik und Informatik
Spiegelgasse 1
CH-4051 Basel
PHONE: +41 61 207 05 52
MAIL: Andreas.Forster@unibas.ch
*****************************************

Bernhard Egger

unread,
Feb 19, 2020, 10:59:26 AM2/19/20
to Andreas Forster, Xiang Li, scalismo-faces
Hi Andreas,

wasn't there a way to load the shape part of the model via scalismo?
Something like this?
val model = StatismoIO.readStatismoMeshModel(new File("model2019_bfm.h5"), "/shape").get
This one does not work, but I think there was a way?

Best
Bernhard
--
0 1 0
0 0 1
1 1 1


Andreas Forster

unread,
Feb 19, 2020, 11:16:17 AM2/19/20
to Bernhard Egger, Xiang Li, scalismo-faces
For me, your code snippet works using a recent version of scalismo. 

Maybe scalismo-lab is the problem. I can not remember if it is possible with that old version of the software. I would anyway suggest switching to a "real" project when doing more than just learning in scalismo-lab.

Best, Andreas

Xiang Li

unread,
Feb 19, 2020, 12:38:16 PM2/19/20
to scalismo-faces
Hi Dr. Egger,

This line works for me. And Dr. Forster is right. It's better to switch from scalismo-lab to the real version of scalismo. scalismo-lab doesn't support some of the functions like LowRankGaussianProcess.approximateGPCholesky. However, I had hard time to set up scalismo on IDE. The tutorial: https://scalismo.org/tutorials/ide.html is so vague to me. Is there any other materials I can refer to?

Best,
Xiang Li



To unsubscribe from this group and stop receiving emails from it, send an email to scalism...@googlegroups.com.


--
*****************************************
Dr. Andreas Morel-Forster
Departement Mathematik und Informatik
Spiegelgasse 1
CH-4051 Basel
PHONE: +41 61 207 05 52
MAIL: Andreas...@unibas.ch
*****************************************

--
You received this message because you are subscribed to the Google Groups "scalismo-faces" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalism...@googlegroups.com.

Andreas Forster

unread,
Feb 19, 2020, 4:23:44 PM2/19/20
to Xiang Li, scalismo-faces
Hi Xiang Li,

You can find a guide how to get started here: https://scalismo.org/tutorials/ide.html

On this page there are also two links at the bottom of the page.

Let us know if you do not find enough information about how to get started.

Best, Andreas

To unsubscribe from this group and stop receiving emails from it, send an email to scalismo-face...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo-faces/760f7116-0448-47df-acd6-81cc64efc6e1%40googlegroups.com.


--
*****************************************
Dr. Andreas Morel-Forster
Departement Mathematik und Informatik
Spiegelgasse 1
CH-4051 Basel
PHONE: +41 61 207 05 52
MAIL: Andreas.Forster@unibas.ch
*****************************************
Reply all
Reply to author
Forward
0 new messages