Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding L1/Seymour um & mirroring #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Robbie1977
Copy link
Contributor

adding um to match the VFB content and adding mirroring for NBLAST from CMTK warp

@Robbie1977
Copy link
Contributor Author

@schlegelp how can I convert the CMTK xform warp from a um Seymour to a mirrored version into something you could use for mirroring in Navis (looks like you need csv points)?

@schlegelp
Copy link
Collaborator

Hi Robbie. The mirroring is a two step process in navis:

  1. Flip x/y/z points along an axis
  2. Apply a warp transform that offsets any left/right asymmetries (transform_type="mirror")

I suspect your CMTK transform is doing both of these together? You could - in theory - just use this to define a transform between DmelL1CNS_Seymourum and DmelL1CNS_Seymourum_mirrored.

The more canonical way is to try to generate a warping transform that offsets asymmetries after the flipping though. What I've done in the past is this:

  1. Define a set of points that tile the volume
  2. Then generate two sets of points:
    a. One where you just flip the points
    b. A second where you use the CMTK transform to move the points to the mirrored position accurately
  3. Use these two sets of points to generate a landmark transform and register it as MirrorTransform

For FAFB I did just that using the JRC2018F symmetrical template for step 2b.

That will obviously subsample the CMTK transform and would likely be a bit less precise (but faster!) - so you might want to run some quality checks. I do wonder if there is a way to extract the warping part out of the CMTK transform and plug that in as the transform_type='mirror'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants