BFM2019 in the .mat format of 01_MorphableModel from previous versions

236 views
Skip to first unread message

isabella

unread,
May 16, 2023, 11:49:42 AM5/16/23
to scalismo-faces

Hi all,

I have been using the 2009 model and the pipeline for my work so far depends on the 01_MorphableModel.mat file.

I might have found an inconsistency between the faces generated by the 2009 model and the 2019 model from the same shape and texture latent representations.

  1. Is this to be expected? If I use the same coordinates, should I expect to get different faces when using one or the other version of the model?

  2. Is the 2019 model available in the same format as the older .mat files? Or is there a straightforward way to parse the information from the 2019 h5 files so that it fits the same format as the older versions?

Thanks in advance!

Andreas Morel-Forster

unread,
May 16, 2023, 2:34:16 PM5/16/23
to scalism...@googlegroups.com

Hi Isabella

1. The two models will not produce the same face for the same coefficients. They do not represent the exact same face space.

2. Nearly all major frameworks offer some hdf5 library. From this you can parse the h5 file quite easily. In essense there are just a couple of matrices and vectors involved. To look at the content of the file you can also use the tool hdfview https://www.hdfgroup.org/downloads/hdfview/

I wish you much success.

Best regards
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/c83a9319-4e8a-4bef-a68b-a1919b217312n%40googlegroups.com.

Bernhard Egger

unread,
May 16, 2023, 2:52:45 PM5/16/23
to Andreas Morel-Forster, scalismo-faces
Hi Isabella and Andreas,

I think to remember the BFM09 to be provided in both hdf5 and matlab - that way you can see how they translate
The biggest difference will be micrometer for 09 compared to milimeter for all other models

Best
Bernhard

isabella

unread,
May 16, 2023, 4:43:17 PM5/16/23
to scalismo-faces
Thank you both! This is very helpful. I have parsed the h5 file successfully to get what in the .mat file is called shapeMU, shapePC, shapeEV, and the texture analogs. Do you remember where in the hierarchical structure I can find the variable "tl"? 

Bernhard Egger

unread,
May 17, 2023, 12:04:08 AM5/17/23
to isabella, scalismo-faces
I think that was the triangle list perhaps? Should be part of the template/reference in the hdf5

Reply all
Reply to author
Forward
Message has been deleted
0 new messages