Weirdness with SlicerCMF results

I’m using SlicerCMF extension (non growing) to do registration between a DICOM image and its mirror image. It’s for a unilateral cleft lip cases, so I want to overlap the cleft area with a mirror image of the normal side.

After registration, it produced 3 outputs (Registration matrix, Registered Scan, and Registered Seg). In Pic A Output are the ones I marked with red, Ori ones are from the original non-mirrored data, while Copy at the ends mean that they are mirrored. Because the registration process required me to segment an area used for reference, I expected the output to produce a segment data as well (which I also need). However, the outputs are in the form of volume data. Is that how it is supposed to be? If I need a segmentation of the registered image, do I need to resegment?

Pic A:

To make things extra annoying, there’s a bug that causes the segmentations to not appear in this data despite turning on the eyes (probably my laptop is not powerful enough? would appreciate advice on this as well). But if I import some of the data individually (see Pic B, I imported the output Registered Seg as volume, along with the original non-mirrored segmentation), I can confirm that the data are there and the registration itself looks decent. I tried importing the Seg output data as a segmentation and it just won’t load/error. In Pic B, I imported Seg as Volume and it appears as this red weirdness and I don’t know what that means.

Pic B:

Can anyone help me with this? Any help is appreciated, thank you.

I’m using Slicer 5.6.1.

If you already have a segmentation of the registered image, simply apply the transform generated by the registration to put it in the same space

This is not a bug. You have loaded your Output Registered… volume as a labelmap. Remove it, and when you load, make sure it labelmap option is not checked.

Thanks for the reply.

If you notice in Pic A, I have already applied the registration matrix on the outputs and the registration definitely works (you can see that there is a slant in the images). Also, there is indeed a bug. Sometimes the segmentations appear, and sometimes they do not appear (when the eyes are checked) in the same data, specifically when there are lots of components like this. For example, in Pic A, ori segmentation and ori cut are checked but the segmentations do not appear anywhere. My question is, I need a segmentation of the output, and I thought Output Registration Seg would be a segmentation but as you can see it is labelled as volume and appear as volume, not segmentation. Can I get a segmentation output without resegmenting the output volume?

Because of the bug, I uploaded some items individually in Pic B (please note that in Pic B, I have already hardened the registration matrix to the Output). Ori segmentation and ori cut appear as they should (as you can see the registration with the red is decent). I uploaded Output Registration Seg as volume (if I try to upload as segmentation, it wouldn’t load). I don’t understand why it appeared red and not typical black and white (considering it’s the same data as shown in Pic A) and not a segmentation (as I need, despite it being named Seg).

I also don’t understand what you mean by removing labelmap, I can’t find it, can you help? This is what I chose when uploading:

Pic C:

If you click on the Show Options, there will be field that says LabelMap. Make sure it is not selected. It think Slicer is confused because you have the “Seg” Keyword in it, and it is trying to load it as a labelmap/segmentation, as opposed to a regular volume.

If they visibility (eyes) are checked, but the segmentaiton is not appearing, it is quite likely that they are not in the spatial coordinate system with the volume you are trying to display them on. This is not a bug, but an indication of there is something of an issue with your workflow in applying registrations to subsequent data.

Inka,
Have you watched the https://www.youtube.com/@DCBIA/videos video 3G tutorial on regional registration using the SlicerCMF CMR Reg module? Hope the video tutorial will help you. If you still run into issues please email me at luciacev@umich.edu and we can schedule a Zoom to help you troubleshoot your issue.
Lucia

@muratmaga I deselected the labelmap and it fixed the view to appear black and white, as expected from regular volume. Does this mean that SlicerCMF produces no segmentations? Which means that if I need a registered segmentation, I need to resegment the output volume?

However I am 99% sure (the remaining 1% is purely because I am new to Slicer although I do have much experience with medical images and I did try to familiarise myself as much as possible with Slicer) that there is a bug, I think my laptop is just not powerful enough to show all the components because there are so many. That is neither here or there though, at this stage I am not trying to fix “the bug”, but the behaviours I noticed are: 1) there is no rhyme or reason about when the segmentations decide to appear (with the eyes checked). Particularly, if the segmentation somehow decide to appear and I checked off the eye, then I re-check the eye the next second, the segmentation wouldn’t reappear. 2) As can be seen in Pic B, the ori segmentation and ori cut are in the exact same space as Output Registered Seg MAX, so they should be visible in Pic A too. And I can confirm that they DID appear in the same space in Pic A, I just didn’t take screenshots and I couldn’t make them reappear with any kind of certainty (except by uploading them individually, like I did in Pic B). Maybe this is not a bug, but I really, really do not think it’s a space issue. I’m writing this mainly because I like being thorough.

Thank you for the reply though, you did help!

@luciacev I did follow the tutorial and I still have questions, I sent you an email! Thank you!

It might or may not be a bug. If you can reproduce the behavior with clear instructions using one of the Slicer sample dataset, someone may look into it. Otherwise, from your description it is still not clear whether that’s a bug or a workflow problem.

I am not familiar with CMF, so I dont know if it supposed to produce segmentation or not. @luciacev might help.

1 Like

I suggested times to Zoom by email. Please let me know what works for you.