val posterior: PointDistributionModel[_3D, TriangleMesh] = ???
val sample: TriangleMesh[_3D] = posterior.sample()
val coeffs = posterior.coefficients(sample)
Best regards
Marcel
--
You received this message because you are subscribed to the Google Groups "scalismo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalismo+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo/c83c6ca8-a878-4632-aeab-9b24f2c2821an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo/1052b438-bff2-46a4-b90e-8ab4b3ea1a94n%40googlegroups.com.
val model : PointDistributionModel[_3D, TriangleMesh] = ???
val mesh : TriangleMesh[_3D] = ???
val coeffs = model.coefficients(mesh)
model.instance(coeffs) // should reproduce the mesh
Best regards,
Marcel
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo/0c398175-6266-479e-8598-b0e122198985n%40googlegroups.com.
val pdm : PointDistributionModel[_3D, TriangleMesh] = ???
val newReferenceMesh : TriangleMesh[_3D] = ???
val pdmWithNewMean = pdm.newReference(newReferenceMesh, TriangleMeshInterpolator3D())
This will not only change the reference mesh, but also adjust the mean such that the represented distribution remains the same.
Best regards,
Marcel
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo/be7fc475-904f-41bb-a787-8700e1cf79c0n%40googlegroups.com.
Hi Cedric
I am not sure, but maybe you are looking for the pdm.transform(
... ) function. This will move your PDM in space to a different
location while keeping the statistical shape space the same. You
should then observe the same mean shape at a different location in
space.
The method newReference instead only changes the reference, i.e. the domain on which the PDM is defined. This method could be used if you want to remesh your reference and transfer the statistical shape space to your new remeshed reference/domain.
Best, Andreas
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo/a686f6c7-0622-4c98-b1e0-752755dd78a2n%40googlegroups.com.