Converting vector fields into indices matrix

13 views
Skip to first unread message

Cosimo Galeone

unread,
Jun 14, 2022, 12:17:13 PM6/14/22
to Plastimatch
Hi all,
I am very new to plastimatch and I am trying to register a moving image to a reference one.
As results from plastimatch I get the deformable vector fields with the displacement on x,y and z for each voxel.
What I am trying to do is to find the indices of each voxel at which the displacements point.
In this way, I should be able to reproduce the warped image provided by plastimatch.
However, the result is a bit different.
Any tips? Is there a way to have directly the matrix with the indices of the warping from plastimatch?
Thanks,

Cosimo

Sharp, Gregory C.

unread,
Jun 14, 2022, 6:12:08 PM6/14/22
to Plastimatch
Hi Cosimo,

In most cases, the displacement field will have the exact same geometry as the fixed image. You can verify this by running:

plastimatch header moving.mhd
plastimatch header vf.mhd

Each voxel in the vf is an [x, y, z] tuple, so that means three single precision floats. In most cases, the order of the voxels within the file will be the same in the vf and the image.

I didn't fully understand your question, so my answer might not be helpful. You may give additional context to explain your goal.

Greg


________________________________________
From: plast...@googlegroups.com <plast...@googlegroups.com> on behalf of Cosimo Galeone <gale...@gmail.com>
Sent: Tuesday, June 14, 2022 12:17 PM
To: Plastimatch
Subject: [Plastimatch] Converting vector fields into indices matrix

External Email - Use Caution
--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com<mailto:plastimatch...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/c755632c-ab63-4f69-aca9-70318f8deffbn%40googlegroups.com<https://secure-web.cisco.com/1zr29Z6J7ZOvmoqTMyOkF0OR4ghcOr5KJqJymTHxVpDTZTxBi5Ih43KCHStBm3iqSfVWSPFCOA_zaPJRQQqGVC8PY9GGV3J9fMM2FCPseJvrD6WXViSisIavvJMGDuUb0HSoeEm_lOyM1exQC6DYhOFZdp5caOr8QxYvsgjDzE0OD5neY2Lw9bqHovjacMSVn2HdSL3XsS4gq6hW0fwcliGCTKgKkT6UrHsCXKdVvRb_7H9jw0lEfMAHbSK6Vg1I3fQIo7HEs-Rs8asSRKD-OQodtqFtoEJg3Up7hrhQzcvn426RAHR0jZ9RRXpXWMqBd5lYnJlsiIMxpOyCVwbCSZg/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2Fc755632c-ab63-4f69-aca9-70318f8deffbn%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.

Reply all
Reply to author
Forward
0 new messages