Skip to content

Creates 3D printed molds to guide the extraction of the medial temporal lobe of an hemisphere.

Notifications You must be signed in to change notification settings

JLasserv/MTLExtraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Welcome!

This is an algorithm to help extracting the medial temporal lobe (MTL) of an hemisphere.

MTLExtraction

This algorithm creates models of 3D molds with slits guiding the cutting to extract the MTL. The first 3D printed mold is designed to hold the whole hemisphere, guiding cuts orthogonal to the midsagittal plane. The second mold is designed to hold the extracted tissue block, guiding subsequent longitudinal cuts. Cuts can be manually positioned or automatically using Powell's method. In the latter case, the algorithm finds 6 cuts to trim the tissue to fit into a 50mm cylindrical holder.

Install

With cmake on Unix:

$ git clone https://github.com/JLasserv/MTLExtraction.git
$ cd MTLExtraction
$ mkdir Build
$ cd Build
$ cmake ..
$ make

With Visual Studio on Windows:

$ git clone https://github.com/JLasserv/MTLExtraction.git
  • Launch the CMake GUI
  • Next to "Where is the source code:", click "Browse Source..." and navigate to where you cloned the repository with Git.
  • Next to "Where to build the binaries:", select "Browse Build..." and select a place to build.
  • Click "Configure", and then specify "Visual Studio" as the generator and "x64" as the platform for this project.
  • Click "Generate".
  • Click "Open Project". This will start a new Visual Studio instance.
  • From the Build menu, choose "Build Solution" (or "Build ALL_BUILD")

How to use the algorithm

Automatic version

INPUT: Path to a folder containing:

  • 7T MRI scan of a formalin-fixed hemisphere named hemisphere.nii.gz
  • segmentation of the hemisphere named hemisphere_seg.nii.gz
  • segmentation of the MTL ROI named mtl_seg.nii.gz
  • (optional) segmentation of the second ROI to be spared during cutting (e.g. frontal lobe) named roi_seg.nii.gz
$ MTLExtraction path/to/files

OUTPUTS: Folder containing:

  • Two files for each mold, depending on whether it is a right or left hemisphere slitmold_hemi.nii.gz, slitmold_mtli.nii.gz
  • files of the cuts cuti.nii.gz
  • files of the reoriented segmentations OrientedPart.nii.gz
  • resulting tissue after using the first mold MTL.nii.gz
  • resulting tissue after using the two molds finalMTL.nii.gz

Interactive version

INPUT: Path to a folder containing:

  • 7T MRI scan of a formalin-fixed hemisphere named hemisphere.nii.gz
  • segmentation of the hemisphere named hemisphere_seg.nii.gz
  • transformation matrices to orient the plan named moldi_k.mat or moldi_k.txt (i take the value (1 or 2) corresponding to the mold on which they should appear; k can take any value)

To determine the orientation of the cuts with ITK-Snap, run a first time the program:

$ MTLExtraction path/to/files manual

This step will create a new folder and an image plan.nii.gz representing the cut to orient. After saving the transformation matrices in the original folder (containing files of the hemisphere), run the program a second time to obtain the molds:

$ MTLExtraction path/to/files manual

OUTPUTS: Folder containing:

  • Two files for each mold, depending on whether it is a right or left hemisphere slitmold_hemi.nii.gz, slitmold_mtli.nii.gz
  • files of the cuts cuti.nii.gz
  • resulting tissue after using the first mold MTL.nii.gz
  • resulting tissue after using the two molds finalMTL.nii.gz

About

Creates 3D printed molds to guide the extraction of the medial temporal lobe of an hemisphere.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published