Volume Preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface Postprocessing Cutting & Flattening.

Slides:



Advertisements
Similar presentations
NA-MIC National Alliance for Medical Image Computing Slicer Tutorial Module: Segmentation May 26, 2005.
Advertisements

Importing TEM Data into IX1D v 3 using TEM2IX1D– A Tutorial © 2012 Interpex Limited All rights reserved Version 1.0.
Buttons in SPM5 Carolyn McGettigan & Alice Grogan Methods for Dummies 5 th April 2006.
Introduction to FreeSurfer
Department of Radiology
Longitudinal Skull Strip A Product of the IDeA Lab Mario Ortega.
FREESURFER: RECONSTRUCTING THE NONHUMAN BRAIN Peggy Christidis July 14, 2005 National Institutes of Health.
Workshop 15 Hybrid meshing of a simple HVAC assembly
SPM5 Tutorial, Part 1 fMRI preprocessing Tiffany Elliott May
Cortical Reconstruction with FreeSurfer surfer.nmr.mgh.harvard.edu Douglas N. Greve MGH-NMR Center Harvard.
Combined Volumetric and Surface (CVS) Registration FS workshop Gheorghe Postelnicu, Lilla Zöllei, Bruce Fischl A.A. Martinos Center for Biomedical Imaging,
Surface-based Analysis: Intersubject Registration and Smoothing
Intro to FreeSurfer Jargon
0 iTools View Builder 2 iTools - View Builder You will also need to have a simulation 3216 running in iTools to link to later.
FreeSurfer: Troubleshooting surfer.nmr.mgh.harvard.edu
Photo Editing Basics Photojournalism. IMPORTANT! ALWAYS make a copy before editing. Never work on your original.
Unix Tutorial for FreeSurfer Users
Quantitative Microscopy Morphogenesis using Nikon NIS, ImagePro Stella Breslin Biosc3 Spring 2010.
Retinotopic mapping workshop COSMO Starting materials In the folder ‘COSMO’ you will find raw data and toolboxes – as if you had just finished an.
MNTP Trainee: Georgina Vinyes Junque, Chi Hun Kim Prof. James T. Becker Cyrus Raji, Leonid Teverovskiy, and Robert Tamburo.
 Process of partitioning an image into segments  Segments are called superpixels  Superpixels are made up several pixels that have similar properties.
Unix Tutorial for FreeSurfer Users Allison Stevens.
Get the best performance out of your PC By Matthew Pinch.
-1- Transforming Datasets to Talairach-Tournoux Coordinates The original purpose of AFNI was to perform the transformation of datasets to Talairach-Tournoux.
DTIAtlasBuilder Adrien Kaiser Neuro Image Research and Analysis Laboratories University of North Carolina at Chapel Hill A tool to create an atlas from.
AFNI Robert W Cox, PhD Biophysics Research Institute Medical College of Wisconsin Milwaukee WI.
1 Hands-On Data Analysis Kate Pirog Revill and Chris Rorden Data from safety training –9 subjects –Finger-tapping task (12s tapping, 12s rest) –188 scans.
Introduction to FreeSurfer surfer.nmr.mgh.harvard.edu
A Qualitative Review of Two Cortical Surface Modeling Packages: FreeSurfer and SureFit Peggy Christidis, Shruti Japee, Ziad S. Saad and Robert W. Cox National.
FMRI Group Natasha Matthews, Ashley Parks, Destiny Miller, Ziad Safadi, Dana Tudorascu, Julia Sacher. Adviser: Mark Wheeler.
MA/CS 3751 Fall 2002 Lecture 24. MA/CS 3752 ginput ginput is a Matlab function which takes one argument input: number of points to select in the image.
Processing Your Own Data With FreeSurfer, certain variables must be set in order to use it correctly: FREESURFER_HOME SUBJECTS_DIR tell Operating System.
Diffusion Tensor Imaging: The Nitty Gritty Brought to you by: Meenal and Erica November 2, 2010.
-1- Region of Interest Drawing and Usage in AFNI Goal: Manually select Regions of Interest (ROIs) based on anatomical structures, then analyze functional.
Workshop 6: Thermal Analysis of a Plate with a Hole University of Puerto Rico at Mayagüez Department of Mechanical Engineering Modified by (2008): Dr.
Requirements Document Slicer3 Workflow Based Interface for NAV-RFA.
Presented By: Weidong WU, Ph.D. Date: Part I Creating a Revolved Part 1. Start Pro/E wildfire. 2. File  set working directory…  Your directory.
Linux and Java Basics. What is Linux? Operating system by Linus Torvalds that was a clone of Unix (thus Linux) Free and open source – this is the reason.
Introduction to 3d Modeling Simple Polygon Modeling Using 3D Max
Multimodal Integration surfer.nmr.mgh.harvard.edu
NA-MIC National Alliance for Medical Image Computing Slicer3 Tutorial Nonrigid Atlas Registration Dominik Meier, Ron Kikinis February.
NA-MIC National Alliance for Medical Image Computing Slicer3 Tutorial Registration Library Case 06: Breast Cancer Follow-up Dominik Meier,
 Simple UNIX commands  I/O techniques in C++  Solutions to Lab#0 problems  Solutions to Lab#1 problems 1.
Freesurfer-based brain image analysis Csaba Anderlik UiB Csaba Anderlik UiB.
Intro to FreeSurfer Jargon voxel surface volume vertex surface-based recon cortical, subcortical parcellation/segmentation registration, morph, deform,
Intro to FreeSurfer Jargon. voxel surface volume vertex surface-based recon cortical, subcortical parcellation/segmentation registration, morph, deform,
Multimodal Integration surfer.nmr.mgh.harvard.edu.
User Manual for Tmaptool – T1 ρ processing tool Guruprasad Krishnamoorthy Chetana Bayas Gargi Pednekar.
FreeSurfer: Troubleshooting surfer.nmr.mgh.harvard.edu.
User Tutorial Neoseg Pipeline 1.0 Marie Cherel, François Budin, Martin Styner NIRAL website:
Image Fusion In Real-time, on a PC. Goals Interactive display of volume data in 3D –Allow more than one data set –Allow fusion of different modalities.
Adobe Photoshop CS5 Chapter 3 Working with Layers.
Installing and Using Evolve Evolve is written in Java and runs on any system with Java 1.6 Download Evolve from Unzip.
FREESURFER HANDS-ON WORKSHOP Peggy Christidis November 18, 2004 National Institutes of Health.
Review Why do we use protection levels? Why do we use constructors?
Workshop 7 Tank Flushing
Multimodal Integration: Registration
Surface-based Analysis: Inter-subject Registration and Smoothing
PowerPoint Activity 5: To Be Determined…
Intro to FreeSurfer Jargon
Surface-based Analysis: Intersubject Registration and Smoothing
Multimodal Integration: fMRI Surface and ROI Analysis
Multimodal Integration
Intro to FreeSurfer Jargon
NWSI Neuroimaging Web Services Interface
FreeSurfer: Troubleshooting surfer.nmr.mgh.harvard.edu
FreeSurfer: Troubleshooting surfer.nmr.mgh.harvard.edu
Intro to FreeSurfer Jargon
Intro to FreeSurfer Jargon
Interactive Editor tutorial
Presentation transcript:

Volume Preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface Postprocessing Cutting & Flattening FreeSurfer Workshop - Begin the Hands-On…

1)Create AFNI dataset using to3d to3d [-options] Class Example (the long way): cd lc_play to3d -prefix mprage1 001/I.* to3d -prefix mprage2 002/I.* to3d -prefix mprage3 003/I.* to3d -prefix mprage4 004/I.* Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

Class Example: foreach x ( ) to3d -prefix mprage{$x} 00{$x}/I.* end Shortcut - Using the foreach loop foreach is a UNIX command that implements a loop, where the loop value (e.g., “x”) takes on values from a list (e.g., 1, 2, 3, 4).

* Datasets we’ve created using to3d: ls lc_play/ mprage1+orig.BRIKmprage1+orig.HEAD mprage2+orig.BRIKmprage2+orig.HEAD mprage3+orig.BRIKmprage3+orig.HEAD mprage4+orig.BRIKmprage4+orig.HEAD Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

2)Perform Nonuniformity Correction on each dataset with AFNI 3dUniformize 3dUniformize -anat -prefix Class Example: (from within lc_play/ directory) foreach x ( ) 3dUniformize -quiet -auto_clip -anat mprage{$x}+orig \ -prefix mprage{$x}_n3 end Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

* Datasets we’ve created using 3dUniformize: lc_play/ mprage1_n3+orig.BRIK mprage1_n3+orig.HEAD mprage2_n3+orig.BRIK mprage2_n3+orig.HEAD mprage3_n3+orig.BRIK mprage3_n3+orig.HEAD mprage4_n3+orig.BRIK mprage4_n3+orig.HEAD Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

* Histogram BEFORE 3dUniformize: Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening * Histogram AFTER 3dUniformize: gray matter peak white matter peak gray matter peak white matter peak

3) Perform Volume Registration using AFNI 3dvolreg 3dvolreg -base -prefix Base dataset:Target datasets: mprage1_n3+origmprage2_n3+orig mprage3_n3+orig mprage4_n3+orig Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening Prefix for output datasets: mprage2_n3vr mprage3_n3vr mprage4_n3vr

Class Example: (from within lc_play/ directory) foreach x (2 3 4) 3dvolreg -base mprage1_n3+orig \ -prefix mprage{$x}_n3vr \ mprage{$x}_n3+orig end Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

* Datasets we’ve created using 3dvolreg: ls lc_play/ mprage2_n3vr+orig.BRIK mprage2_n3vr+orig.HEAD mprage3_n3vr+orig.BRIK mprage3_n3vr+orig.HEAD mprage4_n3vr+orig.BRIK mprage4_n3vr+orig.HEAD Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

4) Average the datasets using AFNI 3dMean 3dMean -prefix Class Example: (from within lc_play/ directory) 3dMean -prefix mprage_avg \ mprage*_n3vr+orig.BRIK mprage1_n3+orig Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

* Datasets we’ve created using 3dMean: ls lc_play/ mprage_avg+orig.BRIK mprage_avg+orig.HEAD Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening This dataset can be viewed in AFNI. beautiful gray-white matter contrast!

5) Create FreeSurfer directory tree using mksubjdirs (note: be sure to source your.fs_login file first) mksubjdirs Class Example: (from within lc_play/ directory) mksubjdirs lc_avg Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

Result from mksubjdirs lc_avg: lc_play/ lc_avg/ bem/label/ morph/ mpg/mri/rgb/scripts/surf/tiff/tmp/ T1/aparc/brain/filled/ orig/tmp/ wm/transforms/ Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

6) Convert volume dataset into COR format: (i.e., 256 coronal slices, 256 x 256 in-plane, 1mm 3 voxel resolution) mri_convert Class Example: (from within lc_play/ directory) mri_convert mprage_avg+orig.BRIK lc_avg/mri/orig Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

Volume Preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface Postprocessing Cutting & Flattening

HOW TO RUN FREESURFER: TYPE csurf ON THE COMMAND LINE! If you like, go to the Freesurfer GUI, select PREFERENCES --> VIEW LOGS to see “stuff” spewing onto the screen.

Process Volume using FreeSurfer’s program, segment_subject segment_subject Class Example: (from FreeSurfer GUI): Subject Tools  Process Volume (do this for BOTH hemispheres) Class Example: (from Command Line): cd../../.. takes you up to lc_play/ segment_subject lc_avg Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening or…recon-all -autorecon1 -subjid lc_avg This is called a “legacy command”

Result of ‘Process Volume’: Intensity Normalization(lc_avg/mri/T1) Skull Stripping(lc_avg/mri/brain) White Matter Segmentation(lc_avg/mri/wm) Note: If using command line option, segment_subject or recon-all -stage2 will also do a first pass inflation of the surface. Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

mri/origmri/T1 mri/brain mri/wm Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

Volume Preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface Postprocessing Cutting & Flattening

Create an inflated surface using FreeSurfer’s inflate_subject Class Example: (from FreeSurfer GUI): Subject Tools  Create Surface Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

Go to TK Surfer interface to examine the inflated surface. Volume preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

Volume Preprocessing Segmentation Tessellation Inflation Manual Editing Re-inflationFix topology Final Surface Volume/Surface Postprocessing Cutting & Flattening

The most commonly derived defects that require manual editing: Fornix (handles) Lateral Ventricle (hole) Basal Ganglia (hole) Optic Nerve (interferes with inflation) Volume preprocessing SegmentationInflation Manual Editing Re-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

Volume preprocessing SegmentationInflation Manual Editing Re-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening Lateral Ventricle Fornix Optic Nerve Basal Ganglia

Manual Editing is done in the wm matter volume. This is the MAIN volume. Load T1 as your AUXILLARY volume. Alternate between volumes Volume preprocessing SegmentationInflation Manual Editing Re-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening wm (T1)

To begin manual editing: Subject Tools --> Edit Segmentation This will load the wm volume and inflated surface simultaneously. The white matter outline will appear on the surface as well. Load T1 volume as the auxillary volume: From TKMedit (volume GUI) File --> Load Auxillary --> T1

Volume Preprocessing Segmentation Tessellation Inflation Manual Editing Re-inflation Fix topology Final Surface Volume/Surface Postprocessing Cutting & Flattening

Manual editing and inflation steps should be repeated until all large topologic defects have been corrected. From GUI: SubjectTools  Create Surface From Command Line: inflate_subject Class Example: (from within lc_play/ directory) inflate_subject lc_avg or…recon-all -stage2 -subjid lc_avg Volume preprocessing SegmentationInflation Manual Editing Re-inflation Fix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

Volume Preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflation Fix topology Final Surface Volume/Surface Postprocessing Cutting & Flattening

FreeSurfer’s automated topology fixer removes smaller topological defects. From GUI: SubjectTools  Fix Surface Topology From Command Line: fix_subject Class Example: (from within lc_play/ directory) fix_subject lc_avg or…recon-all -stage3 -subjid lc_avg Volume preprocessing SegmentationInflation Manual EditingRe-inflation Fix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

Unedited Manually Edited Manually Edited & ‘Fix Topology’ Volume preprocessing SegmentationInflation Manual EditingRe-inflation Fix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

Volume Preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface Postprocessing Cutting & Flattening

Create the final surfaces with FreeSurfer’s make_final_surfaces_subject (i.e., final wm outline, pial outline) From GUI: SubjectTools  Make Final Surface From Command Line: make_final_surfaces_subject Class Example: (from within lc_play/ directory) make_final_surfaces_subject lc_avg or… recon-all -stage4a -subjid lc_avg Volume preprocessing SegmentationInflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

Volume Preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface Postprocessing Cutting & Flattening

1)Main GUI: SubjectTools  Make Full Surface Cuts. 2)Make 5 “relaxation cuts” on medial side and press CUT LINE button on TK Surfer GUI. 3)Enclose midline region and press CUT CLOSED LINE button. Volume preprocessing SegmentationInflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening * For a Full Surface Patch:

4)Mark a point on the region that will be saved and press the CUT AREA button. 5)Save the patch as ?h.full.patch.3d Volume preprocessing SegmentationInflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

1)Main GUI: SubjectTools  Make Occip Surface Cuts. 2)Select points across calcarine fissure and press CUT LINE. 3)Select 3 points to define the cutting plane: 2 on medial side and 1 on lateral side. 4)Choose a fourth point to specify which portion of surface to keep. Volume preprocessing SegmentationInflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening * For an Occipital Patch:

Volume preprocessing SegmentationInflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening 5)Press the CUT PLANE button to create the occipital patch. 6) Save as ?h.occip.patch.3d

From GUI: SubjectTools  Flatten Surface From Command Line: mris_flatten Class Example: (from within lc_play/ directory) GUI: SubjectTools  Flatten Surface Volume preprocessing SegmentationInflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening Command Line: mris_flatten ?h.full.patch.3d ?h.full.patch.flat mris_flatten ?h.occip.patch.3d ?h.occip.patch.flat

Volume Preprocessing Segmentation Tessellation Inflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface Postprocessing Cutting & Flattening

Your surfaces are now ready to be transferred over to SUMA. Volume preprocessing SegmentationInflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening

Volume preprocessing SegmentationInflation Manual EditingRe-inflationFix topology Final Surface Volume/Surface postprocessing Cutting & Flattening AFNI SUMA The AFNI/SUMA hands-on is scheduled for: FRIDAY, November 9,2004, 9:30am-5:00pm Instructor: Dr. Ziad Saad, NIMH

THAT’S ALL FOLKS!!!!!!!!