Retrieving statistics from RTSTRUCT and scalar volume - binary labelmap representation computation is very slow

Hi all. I have access to some data which consists of a CT dataset and an accompanying RTSTRUCT file. This loads fine in 3D slicer, and I’ve even used it to generate some masked data which I then use in some Monte Carlo software. What I would like to do is to get some stats using the same RTSTRUCT segments. When I run the Segment Statistics, I only get some physical information about the segment (volume, surface area) but nothing from the scalar volume statistics. The error log states “setViewLabel should be called before setViewNode !” but Google is little help at solving this.

At the moment, it looks like the RTSTRUCT imports as a closed surface, but from the docs I believe Segment Statistics might need a binary labelmap to do its thing (readthedocs). I’ve tried converting in segmentations but it literally takes forever and eventually I end up force quitting 3D slicer (I’m talking leaving the PC for 30 minutes and still chugging away at 100% CPU). Because of the force quit, I can’t see any of the error logs generated. I’ve converted into ribbon in the past, when I created the masks, as that seemed pretty nippy but doesn’t work to generate the statistics.

I’m currently using v4.11 on Ubuntu (virtual machine that comes with the MC software).

Any ideas? Thank you very much

Can you send me the dataset?

Hi Kyle, I’m away from my data at the moment, so I’ll send it tonight. Would a Googledrive link or similar work for you?

Just to add, I think the setViewLabel message might be a big of a red herring as I’ve seen it pop up a few times unrelated to this now. I also got hold of v5.2 to see if that helps, but that won’t display the RTSTRUCT overlay at all

Hopefully that link will work. Thank you

There are a lot of complex hollow structures that are giving the planar contour → closed surface conversion trouble. Likely because of this some surfaces are poorly constructed, causing a problem when converting it to a binary labelmap.

As a workaround, you can instead convert the structures to binary labelmaps by going through the ribbon model representation.

  1. Click on the arrow beside “Create” for Binary labelmap and click “Advanced create…”:
    image

  2. Choose the “Planar contour → Ribbon model → Binary labelmap” path and click create:
    image

1 Like

Ah, that works perfectly. Thank you!