other:dsx:surface3d:tutorials:segment_a_file_and_create_a_model
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
other:dsx:surface3d:tutorials:segment_a_file_and_create_a_model [2024/07/17 15:43] – removed sgranger | other:dsx:surface3d:tutorials:segment_a_file_and_create_a_model [2025/05/26 16:09] (current) – Cleaned up page and added links. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Segment a File and Create a Model ====== | ||
+ | |||
+ | This tutorial demonstrates the basic steps needed to segment a file and create a Surface Model. | ||
+ | |||
+ | ===== Adding Landmarks and POIs ===== | ||
+ | |||
+ | [[Other: | ||
+ | |||
+ | To create a landmark/ | ||
+ | - Use the View menu to display the Landmarks/ | ||
+ | - Click on the Add Landmark/ | ||
+ | - Move the cursor into one of the [[other: | ||
+ | - Left click in any of the 2D windows to create the landmark/ | ||
+ | - Change the name of the landmark/ | ||
+ | - To move an existing landmark/ | ||
+ | |||
+ | **Note:** Make sure you add landmarks/ | ||
+ | |||
+ | ===== Segmentation ===== | ||
+ | |||
+ | To segment an image: | ||
+ | - Loading the 3D image data using either the Load Image or Load Subject menu items. The [[other: | ||
+ | - Add a label to the segmentation widget via the Add Object Label item of the Segmentation menu. | ||
+ | - The items in the Segmentation widget table can be edited by double-clicking on them with the left mouse button. | ||
+ | - The [[other: | ||
+ | - After positioning the thresholds on the histogram, select the Segmentation-Select Thresholding Seed menu item. The cursor will now change into a crosshair when hovering in one of the 2D windows. Use the left mouse button to define the seed point in one of the 2D windows. Pressing ' | ||
+ | - Once you see the labelled voxels, you can change the upper and lower thresholds and the labelled region will automatically update. **Note:** the updating process is slow! | ||
+ | |||
+ | ===== Editing the Segmentation Label ===== | ||
+ | |||
+ | Simple thresholding is usually not sufficient for segmenting an object from CT or MRI data. After setting the threshold as best you can, you can modify the segmentation by filling holes, erasing voxel labels, and painting voxel labels. These commands are described below. You can also undo/redo these edits using the Undo and Redo commands in the Segmentation menu. The number of commands stored in the undo list is specified by the Undo Limit parameter. | ||
+ | |||
+ | **Note:** If you change the label thresholds in the histogram widget, Surface3D will recalculate the segmentation from the initial seed point, thus deleting any manual edits you have made. | ||
+ | |||
+ | ==== Fill 3D Holes ==== | ||
+ | |||
+ | Segmentation holes are unlabelled image voxels that are completely surrounded by labelled voxels. The //Fill 3D Holes// command will automatically label all holes in the 3D segmentation that are smaller than a certain volume threshold. | ||
+ | |||
+ | The command is initiated by selecting Fill 3D Holes from the [[other: | ||
+ | |||
+ | ==== Manual Hole Filling ==== | ||
+ | |||
+ | Manual hole filling works in 2D, on a single slice of image data: | ||
+ | - Press and hold the M key. | ||
+ | - Left-click on a hole in one of the 2D windows. | ||
+ | |||
+ | ==== Erase Object Labels ==== | ||
+ | |||
+ | This command erases a circular region of the segmentation label in one 2D image slice: | ||
+ | - Press and hold the E key. | ||
+ | - Left-click on one of the 2D slices at the center of the region you want to erase. | ||
+ | |||
+ | **Note:** The size of the region is controlled by Paintbrush Radius in the Settings dialog. If the voxels have the same size in the two dimensions of the slice the painted region will be a circle, otherwise it will be an ellipse. | ||
+ | |||
+ | ==== Paint Object Labels ==== | ||
+ | |||
+ | This command paints a circular region of the segmentation label in one 2D image slice: | ||
+ | - Press and hold the P key. | ||
+ | - Left-click on one of the 2D slices at the center of the region you want to paint with the label. | ||
+ | |||
+ | **Note:** The size of the region is controlled by Paintbrush Radius in the Settings dialog. If the voxels have the same size in the two dimensions of the slice the painted region will be a circle, otherwise it will be an ellipse. | ||
+ | |||
+ | ===== Masking and Cropping Image Data ===== | ||
+ | |||
+ | To make the segmented image suitable for DRR generation in X4D, it needs to be masked and cropped using //Mask Labeled Image Data// followed by //Crop Image Data to Labels// from the Image menu. This actions involve setting all unlabelled voxels to zero and cropping the image to the minimum dimensions that include all of the labelled voxels, respectively. | ||
+ | |||
+ | ===== Surface Model ===== | ||
+ | |||
+ | After the object of interest has been labelled and the image data has been cropped, you can create a surface model from the segmented image. Surface3D uses a marching cubes algorithm to generate a surface model of triangles from the labelled voxels. | ||
+ | |||
+ | Steps: | ||
+ | - Select Create Surface Model from the Segmentation menu. | ||
+ | - After the model has been made you can smooth and decimate it using the Smooth Surface Model and Decimate Surface Model commands in the Segmentation menu. | ||
+ | |||
+ | **Note:** In order for the surface model to be in the same reference frame as the segmented image (used for DRR generation), | ||
other/dsx/surface3d/tutorials/segment_a_file_and_create_a_model.1721230983.txt.gz · Last modified: 2024/07/17 15:43 by sgranger