Size: 20950
Comment:
|
Size: 20958
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 260: | Line 260: |
---- |
-- ["aerdemir"] DateTime(2016-04-14T17:10:26Z) This specification is asking for input from the community. Please provide your feedback
- by editing the ["/Discussion"] page, or
by responding to relevant [https://simtk.org/forums/viewtopic.php?f=485&t=6556 forum entry], or
by sending an e-mail to Ahmet Erdemir, MailTo(erdemira@ccf.org).
Target Outcome
Geometric reconstruction of a tissue of interest ready for meshing:
- as a (parametric or explicit) watertight surface representation, or
- as a solid geometry
Prerequisites
Previous Protocols
For more details, see ["Specifications/ImageSegmentation"].
Protocols
Input
- Volume of tissue of interest as a binary image aligned with original MRI coordinate system (raw, without filtering and smoothing)
- Surface representation of tissue of interest in STL format in MRI coordinate system (raw, without filtering and smoothing)
Procedures
-- ["aerdemir"] DateTime(2013-12-30T15:14:36Z) This section may list general purpose procedures and alternatives to utilize the same input to reach the same output. Procedures optimized for specific tissues should also be provided in here.
When starting with volume representation
- Confirm the tissue volume is a raw representation (without filtering and smoothing)
- Generate raw surface representation of the tissue volume
- Upload tissue volume in image segmentation software, e.g. Slicer.
- Generate water-tight triangulated surface representation (no filtering, smoothing).
- Save raw surface representation with the same file name as the volume representation except with the .stl extension.
- Continue with the next section.
When starting with surface representation
Load raw surface representation of the tissue volume in MeshLab.
- Smooth raw surface representation, e.g.:
Under Filters->Smoothing->Laplacian Smooth, Select smoothing steps of 9 and uncheck all other boxes and apply. This will smooth down most jagged edges from the original file
Under Filters->Smoothing->Two Step Smooth, Select smoothing steps of 3, Feature Angle Threashold at 60, Normal smoothing steps at 20, and Vertex Fitting steps at 20 and apply. This step further levels uneven edges
Under Filters->Smoothing->Taubin Smooth, Select Lambda to 1, mu to 0.0, and Smoothing steps to 12, all boxes are unchecked and press apply. This step creates an overall uniform surface with few rough edges, while still keeping the shape of the initial object. Some values may vary depending on the model input, this selection works for large bones like the femur.
- Parametrize and resample smoothed surface representation.
- Save smooth surface representation with the same file name as the volume representation except with trailing text of 'smooth'.
When parametric geometry is needed
Slicer Procedures
Generate Triangulated Surface (STL) with Laplacian Smoothing
From the Modules drop-down menu, select 'Surface Models' -> 'Model Maker'
- Under 'IO' tab, from 'Input Volume' drop-down menu, select desired Label Map
- In Model drop-down menu, either 'Create and rename new Hierarchy' (e.g. default 'Models'), or select an existing Model Hierarchy.
- NOTE: all models can be generated under the same or separate model hierarchies
- Under 'Create Model' tab, specify a desired 'Model Name' for the select Label Map.
- If no smoothing is desired, under 'Model Maker Parameters', set 'Smooth' to zero.
- If no decimation is desired (nodes at every voxel corner), under 'Model Maker Parameters', set 'Decimate' to zero.
- Click Apply button.
MeshLab Procedures
Input/Output
IMPORT STL:
File -> 'Import Mesh...'
- Select desired STL file(s) (multiple contiguous by holding 'Shift', multiple non-contiguous by holding 'Ctrl').
- Click 'Import STL'.
EXPORT STL:
- Select desired mesh to export from the Layer hierarchy (display by selecting 'stack of planes' icon above 3D viewport).
File -> 'Export Mesh As...'.
- Name file as desired, with the '.stl' extension.
- Click 'Save'
Remeshing, Simplification and Reconstruction
Surface Reconstruction: VCG
- Select desired mesh from the Layer hierarchy panel.
Filters -> 'Remeshing, Simplification and Reconstruction' -> 'Surface Reconstruction: VCG'
- Set 'Voxel Side', 'world unit' to a meaningful size (i.e. relative to original image resolution; e.g. for cartilage images with a resolution of 0.35 x 0.35 x 0.7 mm, use a world unit of 0.35, 0.5, 0.7 mm).
- Select 'Post Merge Simplification'.
- Click 'Apply'.
IF STL FRAGMENTS APPEAR AT MODEL EDGES AFTER RECONSTRUCTION:
- TODO: Describe selecting/deleting floating STL fragments!
NOTES:
- Increasing 'Volume Laplacian iter' decreases resulting reconstructed volume.
- Changing 'Widening' had no visual effect.
Iso Parameterization
- Select desired mesh from the Layer pane.
Filters -> 'Remeshing, Simplification and Reconstruction' -> 'Iso Parameterization'
- Click 'Apply.
IF DOUBLE STEP DOESN'T WORK:
- Deselect 'Double Step'.
- Click 'Apply.
WARNINGS:
This can be buggy, and may cause MeshLab to crash!
- This appears not to be deterministic, i.e. with same input mesh it may or may not work (e.g. same VCG parameters to smooth prior to isoparameterization didn't work in one attempt, but did in another).
Iso Parameterization Remeshing
Filters -> 'Remeshing, Simplification and Reconstruction' -> 'Iso Parameterization Remeshing'
- Try default 'Sampling Rate' = 10.
- Click 'Apply'.
- If needed, iterate last two steps, changing the 'Sampling Rate' until desired surface triangle size is obtained.
Smoothing
Taubin Smoothing
Filters -> 'Smoothing, Fairing and Deformation' -> 'Taubin Smoothing'
- Select 'Preview' to interactively display current smoothing parameters.
- Click 'Apply'.
USEFUL FOR:
- Smoothing vertices/nodes at sharply curved model edges.
- Correcting twisted triangles at focal points following 'Iso Parameterization'.
NOTES:
- Suggested settings: Lambda = 0.5, mu = -0.5
Lambda values > 1.5 cause the mesh to jaggedly explode.
Paired Mesh Distance Mapping (Hausdorff distance)
- Import desired STL(s).
COMPUTE DISTANCE MAP:
Filters -> Sampling -> Hausdorff Distance.
- Set the 'Sampled Mesh' to the desired reference surface (i.e. the surface that the colored distance map will be displayed on, mapped at vertices).
- Set the 'Target Mesh' to the surface used to determine the distance map (from the reference surface vertices).
- Click 'Apply'.
DISPLAY DISTANCE MAP:
- Make sure the desired reference map is selected in the Layer hierarchy.
Display -> 'Show Vert Quality Histogram'.
Filters -> 'Color Creation and Processing' -> 'Color by vertex Quality'.
- Set 'Min' to 0.
- Set 'Max' to an appropriate level (suggestion: aim for distance ~zero-count transition in histogram).
- Select 'Preview' to interactively display currently calculated distance map on the surface.
- Iterate last three steps until desired color-to-distance correspondence is determined.
- Click 'Apply'.
Blender Procedures
Input/Output
IMPORT STL:
File -> Import -> 'Stl (.stl)'.
- Select desired STL file(s) (multiple contiguous by holding 'Shift', multiple non-contiguous by holding 'Ctrl').
- Click 'Import STL'.
EXPORT STL:
- Select the desired mesh to export from the hierarchical Outliner editor pane (default: upper right).
File -> Export -> 'Stl (.stl)'
- Specify a desired folder and filename (extension: .stl).
- Click 'Export STL'.
Useful Shortcuts
- 'n': show 3D Viewport Panel Options
- 'Tab': switch between 'Object Mode' (default) and 'Edit Mode'
'p' (-> : split selected surface mesh triangles into two complementary sets
- 'a': toggle, select all/none
- 'c': 'Circle Select'
- Left-click: select
- Middle mouse button, scroll wheel (click): deselect
- Middle mouse button, scroll wheel (scroll): change size of circular selection area
- 'Esc': cancel current active tool
3D Viewport Interaction
- Left mouse button:
- ['Object Mode']: position cursor
- ['Edit Mode']: select specified sub-geometry (node/edge/face)
- IF TOOL IS ACTIVE: apply active tool
- ('Ctrl'+_): lasso select
- ('Ctrl'+'Shift'+_): lasso deselect
- Middle mouse button, scroll wheel (click): rotate 3D view
- ('Ctrl'+_) zoom in/out (continuous)
- ('Shift'+_) pan
- Middle mouse button, scroll wheel (scroll): zoom in/out (discrete steps)
- Right mouse button:
- [Object Mode]: select object
- [Edit Mode]: activate/deactivate tool (default tool: translate selection)
Triangulated surface mesh (STL) splitting
In order to determine tissue thickness for thin structures (e.g. cartilage, ligament, tendon) using MeshLab, the manifold (water-tight) triangulated surface mesh must be split into to non-manifold, complementary shells. The procedure to do this is as follows:
- Import desired STL(s).
- Ensure you are in 'Object Mode' (shown in drop-down menu underneath the 3D Viewport).
- Selected the desired STL with one of the following options:
- In the 'Outliner' panel (default: upper right), showing the scene graph and datablocks hierarchy, left-click the desired STL.
- In the 3D View, right-click on the desired STL interactively.
- Hit 'Tab' to change to 'Edit Mode'.
- Make sure 'Face Select' mode is selected:
- in the 3D Viewport menu (underneath), left-click the icon showing a cube with one orange face (in a group of three icons, in the ).
- Press 'a' to deselect all faces (automatically selected by default when entering 'Edit Mode').
- SELECT DESIRED SET OF CONTIGUOUS TRIANGLES:
- Right-click a single triangular face on the desired side of the thin model component.
In 3D Viewport menu -> Select -> 'Linked Flat Faces':
- Adjust Sharpness (angle: degrees) until the desired set of contiguous triangular faces are obtained (determine the max. angle that includes the largest region of one side of the thin structure, without spilling over onto the opposite face of the structure).
- MODIFY SELECTION, IF NEEDED:
- Add/select 'holes' (unselected triangles) in contiguously selected region: use 'Circle Select' or 'Lasso Select'
- Tidy boundary of select contiguous triangles: use 'Circle Select'
- PARTITION STL MESH:
- Press 'p' ('Separate').
From Pop-up menu -> 'Selection P'
General Procedures
General Procedure: NO Smoothing (RAW)
Slicer:
- Load desired segmented label map/image volume.
- Generate triangulated surface (STL) from desired component using (Smooth = 0, Decimate = 0, 'Post Merge Simplification').
- Save STL to file using naming convention (["Specifications/DataManagement"]).
General Procedure: Smoothing (LVTIT)
Slicer:
- Load desired segmented label map/image volume.
- Generate triangulated surface (STL) from desired component using 'Laplacian Smoothing' [L] (Smooth = 20, Decimate = 0, 'Post Merge Simplification'), to provide maximum mesh volume prior to following processing steps, which tend to shrink the volume.
- Save STL to file using naming convention (["Specifications/DataManagement"]).
Meshlab:
- Load STL generated in prior step.
- Perform 'Surface Reconstruction: VCG' [V] ('Voxel Side'(world unit) = 0.35-0.7, for cartilage MRI, resolution = 0.35 x 0.35 x 0.7 mm), to smooth out step-i-ness of mesh.
- Perform 'Taubin Smoothing' [T] (Lambda = 0.5, mu = -0.53), to make discretized triangules more uniform in areas of high curvature or triangle node density.
- Perform 'Iso Parametrization' [I].
- Perform 'Iso Parametrization Remeshing' (Sampling rate = 3-20).
- Perform 'Taubin Smoothing' [T] (Lambda = 0.5, mu = -0.53), to untwist potentially collapsed triangles at focal points from iso parametrization.
Component-Specific Procedures
Registration Markers
'General Procedure: NO Smoothing' (RAW):
- Slicer: Smooth = 0, Decimate = 0, 'Post Merge Simplification'
Bones
'General Procedure: Smoothing' (LVTIT) parameters for femur (FMB), tibia (TBB):
- [L]aplacian Smoothing: Smooth = 20, Decimate = 0, 'Post Merge Simplification'
- [V]CG Surface Reconstruction: Voxel Side (world unit) = 0.7
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
- [I]soParameterization: Sampling Rate = 10
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
ImageLink(oks001_MRC_FMB_LVTIT_10.png, width=400, alt=oks001_MRC_FMB_LVTIT_10.png) ImageLink(oks001_MRC_TBB_LVTIT_10.png, width=400, alt=oks001_MRC_TBB_LVTIT_10.png)
'General Procedure: Smoothing' (LVTIT) parameters for patella (PTB):
- [L]aplacian Smoothing: Smooth = 20, Decimate = 0, 'Post Merge Simplification'
- [V]CG Surface Reconstruction: Voxel Side (world unit) = 0.5
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
- [I]soParameterization: Sampling Rate = 7
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
ImageLink(oks001_MRC_PTB_LVTIT_07.png, width=300, alt=oks001_MRC_PTB_LVTIT_07.png)
'General Procedure: Smoothing' (LVTIT) parameters for fibula (FBB):
- [L]aplacian Smoothing: Smooth = 20, Decimate = 0, 'Post Merge Simplification'
- [V]CG Surface Reconstruction: Voxel Side (world unit) = 0.5
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
- [I]soParameterization: Sampling Rate = 5
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
ImageLink(oks001_MRC_FBB_LVTIT_05.png, width=300, alt=oks001_MRC_FBB_LVTIT_05.png)
Cartilage
'General Procedure: Smoothing' (LVTIT) parameters for femoral cartilage (FMC):
- [L]aplacian Smoothing: Smooth = 20, Decimate = 0, 'Post Merge Simplification'
- [V]CG Surface Reconstruction: Voxel Side (world unit) = 0.35
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
- [I]soParameterization: Sampling Rate = [10,15,20] (low density, mid density, high density)
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
ImageLink(oks001_MRC_FMC_LVTIT_10.png, width=300, alt=oks001_MRC_FMC_LVTIT_10.png) ImageLink(oks001_MRC_FMC_LVTIT_15.png, width=300, alt=oks001_MRC_FMC_LVTIT_15.png) ImageLink(oks001_MRC_FMC_LVTIT_20.png, width=300, alt=oks001_MRC_FMC_LVTIT_20.png)
'General Procedure: Smoothing' (LVTIT) parameters for tibial cartilage (TBC-M, TBC-L):
- [L]aplacian Smoothing: Smooth = 20, Decimate = 0, 'Post Merge Simplification'
- [V]CG Surface Reconstruction: Voxel Side (world unit) = 0.35
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
- [I]soParameterization: Sampling Rate = [7,10,13] (low density, mid density, high density)
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
ImageLink(oks001_MRC_TBC-M_LVTIT_07.png, width=300, alt=oks001_MRC_TBC-M_LVTIT_07.png) ImageLink(oks001_MRC_TBC-L_LVTIT_07.png, width=300, alt=oks001_MRC_TBC-L_LVTIT_07.png)
'General Procedure: Smoothing' (LVTIT) parameters for patellar cartilage (PTC):
- [L]aplacian Smoothing: Smooth = 20, Decimate = 0, 'Post Merge Simplification'
- [V]CG Surface Reconstruction: Voxel Side (world unit) = 0.35
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
- [I]soParameterization: Sampling Rate = [(6),8,10,(12)] (low density, mid density, high density)
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
ImageLink(oks001_MRC_PTC_LVTIT_06.png, width=300, alt=oks001_MRC_PTC_LVTIT_06.png)
Menisci
Modified 'General Procedure: Smoothing' (LIT) parameters for mensici (MNS-M, MSN-L):
- [L]aplacian Smoothing: Smooth = 20, Decimate = 0, 'Post Merge Simplification'
- [I]soParameterization: Sampling Rate = [6,8,10] (low density, mid density, high density)
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
NOTE: Modified General Procedure preserves volume better for thin, highly curved geometry, but doesn't smooth segmentation aliasing.
ImageLink(oks001_MRC_MNS-M_LIT_06.png, width=300, alt=oks001_MRC_MNS-M_LIT_06.png) ImageLink(oks001_MRC_MNS-L_LIT_06.png, width=300, alt=oks001_MRC_MNS-L_LIT_06.png)
Connective Tissue - Ligaments & Tendons
'General Procedure: Smoothing' (LVTIT) parameters for ACL, PCL:
- [L]aplacian Smoothing: Smooth = 20, Decimate = 0, 'Post Merge Simplification'
- [V]CG Surface Reconstruction: Voxel Side (world unit) = 0.35
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
- [I]soParameterization: Sampling Rate = [3,4,5] (low density, mid density, high density)
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
ImageLink(oks001_MRC_ACL_LVTIT_03.png, width=300, alt=oks001_MRC_ACL_LVTIT_03.png) ImageLink(oks001_MRC_PCL_LVTIT_03.png, width=300, alt=oks001_MRC_PCL_LVTIT_03.png)
'General Procedure: Smoothing' (LVTIT) parameters for patellar ligament (PTL):
- [L]aplacian Smoothing: Smooth = 20, Decimate = 0, 'Post Merge Simplification'
- [V]CG Surface Reconstruction: Voxel Side (world unit) = 0.35
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
- [I]soParameterization: Sampling Rate = [6,8,10] (low density, mid density, high density)
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
ImageLink(oks001_MRC_PTL_LVTIT_06.png, width=300, alt=oks001_MRC_PTL_LVTIT_06.png)
'General Procedure: Smoothing' (LVTIT) parameters for quadriceps tendon (QAT):
- [L]aplacian Smoothing: Smooth = 20, Decimate = 0, 'Post Merge Simplification'
- [V]CG Surface Reconstruction: Voxel Side (world unit) = 0.35
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
- [I]soParameterization: Sampling Rate = [4,6,8] (low density, mid density, high density)
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
ImageLink(oks001_MRC_QAT_LVTIT_04.png, width=300, alt=oks001_MRC_QAT_LVTIT_04.png)
Modified 'General Procedure: Smoothing' (LVIT) parameters for MCL:
- [L]aplacian Smoothing: Smooth = 20, Decimate = 0, 'Post Merge Simplification'
- [V]CG Surface Reconstruction: Voxel Side (world unit) = 0.35
- [I]soParameterization: Sampling Rate = [6,7,8] (low density, mid density, high density)
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
ImageLink(oks001_MRC_MCL_LVIT_06.png, width=300, alt=oks001_MRC_MCL_LVIT_06.png)
Modified 'General Procedure: Smoothing' (LIT) parameters for LCL:
- [L]aplacian Smoothing: Smooth = 20, Decimate = 0, 'Post Merge Simplification'
- [I]soParameterization: Sampling Rate = [3,4,5] (low density, mid density, high density)
- [T]aubin Smoothing: Lambda = 0.5, mu = -0.53 (defaults)
ImageLink(oks001_MRC_LCL_LIT_03.png, width=300, alt=oks001_MRC_LCL_LIT_03.png)
Sample Results
Following are images at ~45 degree increments about the full 3D STL model showing the coarsest triangulated surface geometry.
ImageLink(oks001_3D_STL_coarse_1.png, width=300, alt=oks001_3D_STL_coarse_1.png) ImageLink(oks001_3D_STL_coarse_2.png, width=300, alt=oks001_3D_STL_coarse_2.png) ImageLink(oks001_3D_STL_coarse_3.png, width=300, alt=oks001_3D_STL_coarse_3.png) ImageLink(oks001_3D_STL_coarse_4.png, width=300, alt=oks001_3D_STL_coarse_4.png) ImageLink(oks001_3D_STL_coarse_5.png, width=300, alt=oks001_3D_STL_coarse_5.png) ImageLink(oks001_3D_STL_coarse_6.png, width=300, alt=oks001_3D_STL_coarse_6.png) ImageLink(oks001_3D_STL_coarse_7.png, width=300, alt=oks001_3D_STL_coarse_7.png) ImageLink(oks001_3D_STL_coarse_8.png, width=300, alt=oks001_3D_STL_coarse_8.png)
Output
- Explicit surface representation of tissue of interest; in STL format in MRI coordinate system (processed with volume preserving smoothing)
Parametric surface representation of tissue of interest in IGES & STP format in MRI coordinate system (processed with volume preserving smoothing)
Parametric solid model of tissue of interest in IGES & STP format in MRI coordinate system (processed with volume preserving smoothing)