dicom2stl icon indicating copy to clipboard operation
dicom2stl copied to clipboard

thresholding value for clothing and patient bed removal

Open gokceay opened this issue 5 years ago • 3 comments

Hi,

By using your code is it possible to remove clothing, patient bed etc. removal by changing HU threshold values or trying something else? I tried a few threshold value for skin extraction and soft tissue but could not get a clean stl. Thanks in advance, Kind regards Gokce

gokceay avatar Jul 11 '20 10:07 gokceay

I'm afraid there's no way to remove those thing simply based on a threshold. I think the Hounsfield units of cloth and the bed are similar to soft tissue, so you can't just pick a value. You really need some sort of model based segmentation approach.

dave3d avatar Jul 13 '20 14:07 dave3d

Thanks a lot, I segmented the patient bed and clothing using another code, is it possible to convert to stl directly without selecting the bone skin soft tissue part specifically? I want to convert my segmented dicom to stl directly. Thanks in advance

gokceay avatar Jul 17 '20 09:07 gokceay

If you can select a good iso-value, then you can use my script to create a STL mesh of that iso-value. Examine the pixel intensities of the thing you're trying to extract, and pick a number somewhere in the middle range of those intensities.

Let's say you thing 200 is a reasonable iso-value. Then you'd run the script like this:

dicom2stl.py -i 200 dicom.zip

dave3d avatar Jul 17 '20 15:07 dave3d