UV coords for BFM2019

156 views
Skip to first unread message

Tsukasa Nozawa

unread,
Dec 19, 2019, 6:23:35 AM12/19/19
to scalismo-faces
Hi,


I have a question about the difference between number of vertex and number of uv coods.
According to new uv data("model2019_textureMapping.json"), there are 58351 uv coords in that file. However, bfm2019("model2019_fullHead.h5") having 58203 vertices.
Why these are not having same number? In order to use correct UV coords, how can I take a correspondance?



Best,
Tsukasa

Andreas Forster

unread,
Dec 19, 2019, 7:38:03 AM12/19/19
to Tsukasa Nozawa, scalismo-faces
Hi Tsukasa,

The texture mapping stores the texture coordinate per point in a triangle. So for one vertex which is contained in two triangles, you could potentially get two different UV-coordinates.

You can find example code on how to use the texture mapping with our open-source scala software under:
https://github.com/Andreas-Forster/parenthetic-blog/tree/texture-mapping
This code also generates you a *.ply file which then contains the texture coordinates.

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/4bb5d354-0767-49ed-8984-181c24f122d7%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
*****************************************

Tsukasa Nozawa

unread,
Dec 19, 2019, 8:26:31 AM12/19/19
to scalismo-faces
Thank you Andreas. I will take a look your example! Can I ask you one more question?

BFM2019 has 60 keypoints information like attached image.  Do you have a plan to add other type of landmarks such as 300W annotation(68 points)?
Also, If you have any idea could you please tell me the way to get other anotation's index from bfm2019?




Best,
Tsukasa

Andreas Forster

unread,
Dec 19, 2019, 9:45:17 AM12/19/19
to Tsukasa Nozawa, scalismo-faces
There is nothing planned for adding more landmarks from different databases yet. It might come at some point or not, depending on our internal projects.

You can use scalismo-ui to add additional landmarks. Please have a look at:
The code should load the current 60 landmarks and the lvl 1 reference. Then you can click new landmarks and save them to a file. A second class can then be used to add this landmarkfile to a model.

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.

Tsukasa Nozawa

unread,
Dec 19, 2019, 4:06:02 PM12/19/19
to Andreas Forster, scalismo-faces
Thanks a lot!


Best,
Tsukasa


2019年12月19日(木) 23:45 Andreas Forster <Andreas...@unibas.ch>:


--


Tsukasa Nozawa

Shigeo Morishima Lab.
Department of Applied Physics
School of Advanced Science and Engineering

Waseda University

Tel: +81-80-6045-411
E-mail: waza...@gmail.com

Reply all
Reply to author
Forward
0 new messages