Slicer 5.6.2 will flash back when it calculated Hausdorff metric and Dice metric in SegmentComparison module

Slicer will flash back when calculating Hausdorff distance metrics and dice metrics for the same layer in two different images using slicer’s radiotherapy-segmentcomparison. I tried to reduce the size of the image and run it on two different computers, but it still didn’t work. What is the reason for this? Could you give me some suggestions? Thank you

What does it mean “flash back”? Can you please describe the exact steps you take, what you expect, and what happens instead exactly?

Also, what does it mean “same layer in two different images”? Are you working with 2D images?

1.’flash back’ means software will automatically quit suddenly when you are using.

2.The extact steps:

Load images(SliceMorph- input and output- image stack)

Segment images(Segment Editor- Add segment for two images)

Calculate Dice metric (Radiotherapy - Segment Comparison)

3.My goal is across ‘segment comparison’ module gains images’ Dice metric and Hausdorff. This module would give results of the calculation in software in the past, but now the software will automatically exit when ‘Compute Hausdorff distance’ is clicked.

4.I hope this issues that software will automatically exit when I use the function of segment comparison can be solved

5.Same layer looks at green line in the image.

6.My imaging is phase contrast and fluorescence. They both consist of multiple pieces of 2d images.

OK thanks. It is called a crash.

Unfortunately it is not clear to me if you are really working with 3D images. I was asking because most tools in Slicer are not designed to run on 2D data. Could you upload this MRB scene and share it?

Thanks for sending the scene.

It turns out this is the case. Slicer is designed to work on 3D data. I suggest doing real 3D segmentations and comparing those.

The fact that it crashes is quite bad, but if the tools are not used in a way they are intended, unexpected things may happen.

Thank you very much for answering my questions on your busy schedule! I would like to ask about fluorescence slicing to increase the number of picture sheets to form a 3d image, why is this not possible? Can phase contrast this kind of image be used in 3d slicer?

I’m sorry I don’t quite understand the question, I’m not an expert in image aquisition or reconstruction. However, I have the feeling that Slicer cannot really help with acquiring better images. It can load and process images but it is a later stage. Maybe someone else will be able to help. Or if you explain it more, maybe I will understand.

@Alice914 it sounds like you are doing microscopy analysis. Slicer would be most helpful for confocal, light sheet, or other natively 3D acquisitions (based on my limitied experience with microscopy). It’s not a main application, but you might checkout GitHub - gaoyi/SlicerBigImage: Large (GB and above) scale microscopic image computing using 3D Slicer to get an idea what’s possible.

1 Like

Thank you a lot!! Maybe it is image problem. Now I get it that 2d image is not suitable in 3d slicer

Well, some 3D algorithms may not work for simgle-slice data, like you saw with segment comparison.

But if you can extend the segmentation to 3D, then it will probably run. Is it important for you to have a different segment on each slice?