3D slicer accurate heart chambers segmentation

Hi

I need to segment atria and ventricles, their lumen, walls reasonably accurately so as to measure their volumes subsequently. I used paint tool and then" segment statistics" to do this. but doing segmentation for each part of heart separately takes quite a lot time. Is there a quick way to do segmentation of all parts of heart together in a quicker way? If there are more than one ways, please share all. I ll like the simplest ones though as I am not the computer guy :slight_smile:
Secondly, for osirix I had to scale down data to 50% and then further more scaling down. In osirix I use values for x=1, y=1 and section interval value (=calculated by my presdesigned excel sheet). I cant see these x, y and section interval things in 3D slicer and hence the 3D image is very abnormally oblong/elongated in 3D slicer. How can I bring it back to normal 3D shape (of heart)?
Thirdly, What addditional different features pyradiomics offer in relation to measurements? How is it useful?

Yes, after some practice, you can segment all the heart chambers in a couple of minutes. See this tutorial for details:

If you have a CT with slices of 512x512 then you can downsample the image (e.g., using a spacing scale of 2.0) and also crop away irrelevant image regions using Crop volume module - without impacting accuracy of volumetric measurements. The downsampling and cropping are useful because they reduce the amount of data, thereby make all processing and visualization significantly faster.

I’m not sure what you mean by interval things, but DICOM images that you load into Slicer should appear without any distortion. Import original DICOM images using the latest Slicer Preview Release and let us know if you run into any issue.

pyradiomics can compute features that might be used for tissue characterization. Most likely not very relevant for cardiac CTs. What is the clinical problem you are trying to solve?

Thanks very much @lassoan. I have mouse-hearts which I sectioned at 2micron thickness using a high resolution microscope (with, of course, microtomy). The data stack I got was around 2000 (section) images. I scaled down the data, as very heavy data crashes the different imaging programs. so I was able to reduce data size from the raw 40 GB to ~230MB. In osirix, when I import the same 230MB data as DICOM files, in the “calibrate the dataset” window, it asks for x, y resolution and slice interval. If I enter Pixel x resolution =1mm Pixel y=1mm and slice interval as 1mm, then I get a highly elongated/oblong heart in 3D. But if I use x=1, y=1 and for slice interval if I use the “scaling factor” value calculated by my excel sheet taking into account the scaling down of data, it gives me a nice 3D image in osirix.
Importing the same data into 3D slicer, gives me similar oblonged heart since I dont know how to change the “slice interval” to the one I used for osirix.
My ultimate aim is that I need to segment the ventricles, atria to measure their volume, using 2D images, and then using “fill in between slices” effect, which gives me an oblong 3D segment (e.g. ventricle volume). I am just wondering if the volume measurements will be different if I have the oblong/elongated 3D-heart versus a nice 3D heart? If latter is the case, how can i insert the slicing interval in 3D slicer as I used in the Osirix? which measurements will be more accurate?
Moreover, I am just thinking that wouldnt it be even more accurate to have a segment quantification/segment stats without putting the slicing interval? not sure?

Thanks in advance for your time.
image

I would recommend to load the original DICOM, resample (and crop as much as you can) using Crop volume module, save it as a nrrd file, then use that nrrd file. There will be no distortion then.

If your computer does not have enough physical memory to load the entire data set at full resolution then make sure you have virtual memory that is a few times more than the full-resolution data size. On Windows, you can adjust virtual memory size in Windows system settings; on Linux this is called swap space; on macOS the size is increased on demand and you just need to make sure there is enough free disk space.

@muratmaga I know that ImageStacks can downsample large images without ever loading the full image. Do you provide a solution like this for DICOM images, too?

ImageStacks uses SimpleITK to read, so it should work for dicom as long as the file names follow a compatible scheme.

1 Like