You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the symmetry for the BFM2017 should be the same as for the BFM2009.
For the BFM2019 you can build it yourself, the reference should be mirrored at the z-y plane up to numerical inaccuracies. In scala you can use something similar to the following code to find a list of the point index pairs:
importjava.io.Fileimportscalismo.utils.Randomimportscalismo.faces.io.MoMoIOobjectSymmetryextendsApp {
scalismo.initialize()
implicitvalrng=Random(1024l)
valmomo=MoMoIO.read(newFile("model2019.h5")).get
valpoints= momo.referenceMesh.pointSet.points.toIndexedSeq
valmirroredPoints= points.map(pt => pt.copy(x =-pt.x))
valsymmetryList=for ((pt, idx) <- points.zipWithIndex) yield {
(idx, mirroredPoints.indexWhere(p => (p - pt).norm <1.0e-4))
}
// check it for the first few points
symmetryList.take(10).foreach(p => println(s"${p._1}:${points(p._1)}${p._2}:${points(p._2)}"))
}
Hi! Thanks for your work! I want to known if the BFM2017 and BFM2019 provide the symmetry list of vertices like BFM2009?
The text was updated successfully, but these errors were encountered: