Bone segmentation to create 3D-printable STL

Hello everyone,

I need your support

I got this stl as you can see it doesnt look good for further analysis. Can
you please tell me how i can modify my stl by modifing my NIfTI data. As
i dont know how to edit my stl data after generating it. Any ideas and
method will be with a great help.

Thanks in advance


1.3.12.2.1107.5.2.19.45406.20141202103253422220…
https://drive.google.com/file/d/0Bzs8bzC2MHdeQ0ZkOXFSLTdVSGc/view?usp=drive_web
​​
femur.stl
https://drive.google.com/file/d/0Bzs8bzC2MHdebnc4dVlKT2FOUnM/view?usp=drive_web

In the STL that you linked, large portions of the bone is missing, so I don’t think it make sense to “fix” it. Instead, I would recommend to redo the segmentation.

I would recommend to use the latest nightly version of Slicer and perform the following steps:

  • reduce image noise: use Cast Scalar Volume' module to convert input volume to Float type; use Simple Filtersmodule withGradientAnisotropicDiffusionImageFilter` on the converted volume
  • go to Segment Editor module, use the noise-reduced volume as master volume
  • create two new “seed” segments, paint one segment inside the bone, the other segment outside the bone
  • use Grow from seeds effect to segment the bone (click Initialize then make additional paint strokes as needed; finally click Apply)
  • delete the non-bone (background) segment
  • create 3D representation by clicking Create surface button
  • smooth the result by using Smoothing effect

See results below (green: original STL; brown: segmentation using the above-described steps):

1 Like

Prof. Doc. Andras,

Thank you so much for the support.

The segmentaion went fantastically for me. However, when it comes to the
last step of saving the model. I didnt have the option to save as an STL my
model.

Looking forward to hearing from you as well as whoever has been through
this same issue.

Best,

Hanaa

1 Like

See instructions for exporting to model node (that can be saved as STL file) here: https://www.slicer.org/wiki/Documentation/Nightly/Modules/Segmentations#How_to

Prof. Doc. Andras,
Dear Everyone,

I was writing back to you . I have fixed the stl export issue. I used
segmentaions module>export,models>export. and finally could save it as a
stl file.

Thank you again Professor for the support.

All the best,

Hanaa

1 Like

hello sir
i am also suffering to edit the .stl model. i didnot try to edit in slicer but import it to Catia v5.
i am engineering student.
i had converted .stl file to .igs format but it is not editable in any format.
i have to perform FE analyses thats why i converted to that format to open in any FE software.
thanks

Hi
You can’t edit the stl file directly – although you work with the mesh editing (edit the triangles in the mesh) – you have to transform the mesh to surfaces – and edit them. To export to IGES or any other format would not help – it only transform the coordinates of nodes of each triangle surface (plate) and vector o fit.
Vilem

thank you sir for reply
how to perform 1): transform the mesh
to surfaces
:
presently i am using meshmixer after 3D slicer to rectify or smoothing the
surfaces, i will try there if possible.

thanks again

hello vilem Vrbicky
is any tutorial is available related to mesh editing, i haven,t get the success in edit it???

MeshMixer is a very nice tool but you should be very careful in using it for surfaces obtained from medical images. The main limitation of MeshMixer is that it cannot show you the original image along with the extracted surface, so if you apply some processing there is no way you can assess that the “cleaned up” surface is still follows the original image closely enough. If you do some processing in MeshMixer then you always have to load the processed surface into Slicer to verify that the result is still valid.

Note that you have a number of smoothing option in Slicer: you can smooth the master volume before segmentation (there are a large number of image processing filters in SimpleFilters module); or use the Smoothing effect in Segment Editor.

How to edit segments:

Segment editor reference manual: http://slicer.readthedocs.io/en/latest/user_guide/module_segmenteditor.html
Tutorials: https://www.slicer.org/wiki/Documentation/Nightly/Training#Segmentation_for_3D_printing
Video tutorial:

If you have a surface mesh then you have to import it into a Segmentation node first (using Segmentations module’s Import function).

thankyou lassoan sir
i learned the smoothing and editing in 3D slicer thats ok.
problem is : we know the bones are made up of two types :1) cortical outer region
2) cancellous inner region

so that i want to keep that two volume separate to provide material properties.
the file from 3D slicer is in .stl format which is considering one body.
can you give any suggestion related to this???

Create separate segments for cortical and cancellous bone regions.

2 Likes

A post was split to a new topic: How to align segments to each other

hello sir
in segment editor module when i am clicking on color option to change it, it didn’t showing

option

also sir you told made separate segment for cortical and cancellous bone, how???
what i understand that every bone has outer layer is of cortical bone, how to develop the bone layer exactly above the cancellous of exact dimension.

Double click on the colored rectangle to open terminology pop-up and change the color there.

There are many ways of separating different bone structures and there is no universally applicable recipe. However, what usually works quite well is segmenting cortical bone by simple thresholding. Then paint with a different segment inside the bone, and with a third segment outside the bone and use grow from seeds effect to generate a complete segmentation. While in preview mode of Grow from seeds, you can modify the seeds interactively to fix potential misclassifications.

thankyou sir for continuous effort for us this provide me confidence,

in color pop up
there is category > anatomy …> bone> (BUT NO OPTION FOR CORTICAL AND cancelous BONE)
I WANT to know the threshold value for cortical bone and cancellous bone.
how to see the threshold unit in 3D slicer.

Names, terms you select in the terminology popup do not affect processing. You can look up CT intensity (Hounsfield unit) range for different structures by a simple web search, but the easiest is to choose threshold value based on what you see in the Threshold effect’s preview.

Please avoid using all caps, such as “I WANT”, because

typing messages in all caps became closely identified with “shouting” or attention-seeking behavior, and may be considered rude

[All caps - Wikipedia]

sorry for that next time no capital letters
thanks for information

Good afternoon sir
still not succeeded in creating cortical and cancellous bone.

First i created the cortical bone in segment editor in color of bone
then i changed threshold for capturing cancellous but it also having some coincide threshold and when i created surface and save it, it showing one body.

first one for cortical and second for cancellous(but it also come on surface of cortical)

is any video is available for this?
thankyou