invert transform a mesh

67 views
Skip to first unread message

S Arbabi

unread,
Aug 5, 2024, 4:00:38 PM8/5/24
to scalismo
Hi,

I am aligning a mesh to reference as follows:
val transform = LandmarkRegistration.similarity3DLandmarkRegistration(correspondences, center = Point(0, 0, 0))
           
val transformed = movingMesh.transform(transform)
and then I bring in correspondence with reference.
now I want to take the shape to its original location.
I'm wondering how I can do this by doing a reverse transform?

Best regards,
Saeed

Marcel Luethi

unread,
Aug 6, 2024, 7:10:10 AM8/6/24
to S Arbabi, scalismo
HI Saeed

The transformation that you get should have the method invert, which computes the inverse function:

Another option is to just switch the order of the landmarks and compute a new transformation.

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/761dab29-38d1-4ddc-a025-4ff6de8f9a83n%40googlegroups.com.

S Arbabi

unread,
Aug 8, 2024, 3:45:51 PM8/8/24
to scalismo
Hi Marcel,

Now I want to write the transformation on disk, how can I do so? And then how can I load it?

Best regards,
Saeed

Marcel Luethi

unread,
Aug 9, 2024, 12:36:52 AM8/9/24
to S Arbabi, scalismo
Hi Saeed

Scalismo currently does not offer functionality to save and load transformations. You can, however, just store the landmark pairs and compute the transforms everytime from scratch. The computation is super fast.

Best regards,
Marcel

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