đź“™
XROMM
  • Table of Contents
  • Introduction to XROMM
  • Model Generation
    • Model Generation: Creating 3D models using Amira software
    • Model Generation : Creating 3D models with Horos
    • Model Generation : Creating 3D models with 3D Slicer
    • Model Generation : 3D Marker Models with Horos
    • Model Generation : Cleaning up 3D models with Geomagic
    • Model Generation : Cleaning 3D models with MeshLab
    • Model Generation : Measure CT Marker Coordinates in Maya
  • Animate Bones and Markers
    • Animate Bones and Markers : Importing mesh models into Maya from Horos
    • Animate Bones and Markers : Animate Bones in Maya
    • Animate Bones and Markers : Check Your Animation with MayaCams
  • Maya Analysis and Visualization
    • Maya Analysis and Visualization : Working with joint coordinate systems (JCS)
    • Maya Analysis and Visualization : Measuring and exporting the distance between two points
    • Maya Analysis and Visualization : Measuring XYZ Coordinates of a Point Over Time
    • Maya Analysis and Visualization : Parent a camera to a reference bone
    • Maya Analysis and Visualization : Relative Motion
  • Scientific Rotoscoping
    • Scientific Rotoscoping : Recreate X-Ray cameras in Maya
    • Scientific Rotoscoping : Scientific Rotoscoping in Maya
      • Scientific Rotoscoping : Pan and Scan tools for Rotoscoping
    • Scientific Rotoscoping : Animating a Bone with One or Two Markers
  • Tips and Tools
    • Tips and Tools : Open Maya files from a newer version with older versions
    • Tips and Tools : Precision testing using frozen cadavers
    • Tips and Tools : Import XYZ points into Maya
  • XMAPortal User Manual
    • XMAPortal : Getting Started with XMAPortal
    • XMAPortal : How to Create a New Study
    • XROMM : How to Modify Study Metadata
    • XROMM : How to give access or revoke access to see your study
    • XMAPortal : Data Organization
    • XMAPortal : Metadata Pool
    • XMAPortal : How to Create Trials
    • XMAPortal : How to edit an existing trial
    • XMAPortal : How to upload files
      • XMAPortal : Clearing your browser history
      • XMAPortal : Changing how Java applet connects to the network
      • XMAPortal : Show Firefox developer window
    • XMAPortal : Hide Files
Powered by GitBook
On this page

Was this helpful?

  1. Model Generation

Model Generation : Creating 3D models with 3D Slicer

PreviousModel Generation : Creating 3D models with HorosNextModel Generation : 3D Marker Models with Horos

Last updated 5 years ago

Was this helpful?

3D Slicer is an open-source program that allows for the three-dimensional visualization and processing of CT scans. The steps to go from a raw CT image sequence to a segmented 3D mesh are outlined below.

To import your images into 3D Slicer, you will need an .nrrd file. If you do not already have an existing .nrrd file, you can generate one using Fiji, a free image processing package available here:

Generating an NRRD File

  1. Open Fiji and go into: File → Import, and select Image Sequence

  2. Select the file that contains your desired image sequence.

    1. If your file is large, you can increase the increment size

    2. Here, you can also determine which portions of the sequence you wish to export, and also change parameters such scaling.

  3. To save your .nrrd, go to: File → Save As→ Nrrd

  4. You now have a 3D Slicer-compatible NRRD image sequence!

Using 3D Slicer

  1. In 3D Slicer, load in the .nrrd file

    1. File → Add Data → Choose File(s) to Add → select the .nrrd file

    2. Click OK to load in the images

    3. IMPORTANT: 3D Slicer will by default set Image Spacing dimensions to 1mm x 1mm x 1mm. Select the Volumes module in the drop-down menu in the top left.

    4. In Volumes, set Image Spacing to the dimensions of the original image sequence, which can usually be found in a metadata file. If using a scan from MorphoSource, the dimensions are listed in the specimen scan description.

    5. You should now have a workspace that looks like this:

2. You can adjust your workspace in: View → Layout ( Conventional is the layout option used in the visuals provided here).

3. Next, let’s generate a 3D mesh.

    1. Double-click on the segment name to rename it (e.g. “catfish_skull”) or change other properties such as color.

    2. In the Effects menu, you can use various tools to select a region of interest (ROI) for your mesh. It is easiest to select Threshold to generate a desired ROI.

    3. Adjust the Threshold slider to ensure that all desired bone areas are highlighted. You may also manually adjust the Threshold Range using the arrow keys.

    4. Click Apply to apply your threshold settings.

    5. You can click on the Show 3D icon to see your current 3D mesh.

    6. If any adjustments have to be made, the Scissors tool is handy in removing unwanted artifacts. It is also useful for creating different meshes in 3D Slicer. To do so, simply Add a new segment and repeat these steps.

      1. NOTE: The Scissors tool applies ROI changes for the entire image sequence, not just the current frame. To eliminate an undesired portion of a single frame, the Erase tool can be used either in the 2D image window or in the 3D view window.

4. To export your mesh, click on the Segmentations icon.

    1. Scroll down to the Export/Import models and labelmaps section

    2. Click Export

    3. Click Save at the top left of 3D Slicer

    4. In the popup window, uncheck all boxes on the left except for your desired segment (e.g. “catfish_skull.vtk”)

    5. IMPORTANT: Change the file name and file directory as desired, but make sure to set the file format to OBJ (.obj)

    6. Click Save when finished.

5. You now have a segmented 3D mesh! However, final mesh changes (e.g. polygon reduction, mesh cleaning, etc.) can be done in MeshLab.

Navigate to the Segment Editor module in the modules drop-down menu and click Add.

Make sure the Output Type is set to Models

https://fiji.sc/