/
1 Anatomical Analysis with 1 Anatomical Analysis with

1 Anatomical Analysis with - PowerPoint Presentation

singh
singh . @singh
Follow
65 views
Uploaded On 2024-01-29

1 Anatomical Analysis with - PPT Presentation

FreeSurfer surfernmrmghharvardedu 2 Processing Stream Overview Skull Stripping Intensity Normalization Volumetric Labeling Surface Extraction Surface Atlas Registration Gyral Labeling ID: 1042559

bert mgz 0000 stats mgz bert stats 0000 file surface white surf aparc dcm subject label mri subjects volume

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "1 Anatomical Analysis with" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

1. 1Anatomical Analysis with FreeSurfersurfer.nmr.mgh.harvard.edu

2. 2 Processing Stream OverviewSkull StrippingIntensity NormalizationVolumetric LabelingSurface ExtractionSurface AtlasRegistrationGyral LabelingWhite MatterSegmentationT1 WeightedInput Stats!

3. 3 Input: T1 Weighted Image T1 Contrast: white matter brighter than gray matter ~1mm3 (no more than 1.5mm) Higher resolution may be worse! Full Brain Usually one acquisition is ok MPRAGE or SPGR 1.5T or 3T 7T might have problems Subject age > 5 years old Brain has no major problems (ie, tumors, parts missing) Non-human primates possibleMore MRI Pulse Sequence Parameter Details:http://www.nmr.mgh.harvard.edu/~andre

4. 4Fully Automated Reconstruction*recon-all –i file.dcm –subject bert –all* “Reconstruction” here refers to cortical reconstruction, not k-space reconstruction.

5. 5Fully Automated Reconstructionrecon-all –i file.dcm –subject bert –allfile.dcm is a single DICOM file from the T1 MRI series.If you have more than one T1, then use: –i file1.dcm –i file2.dcmYou can use NIFTI as well with –i file.niiTo get a list of acquisitions:dcmunpack –src /path/to/dicoms

6. 6Fully Automated Reconstructionrecon-all –i file.dcm –subject bert –all“bert” is the “name” of the subjectCreates a folder in $SUBJECTS_DIRAll output goes in this folder (~400MB)Other subjects in $SUBJECTS_DIRbert$SUBJECTS_DIRerniefsaverage …setenv SUBJECTS_DIR /path/to/space

7. 7Fully Automated Reconstructionrecon-all –i file.dcm –subject bert –all-all means to do everything!Can take 10-20 hoursLater, we will show you how to run subsets of the processing stream to make it faster when correcting errors.

8. 8Upon Completion… $SUBJECTS_DIR/bert scripts mri surf label stats recon-all –i file.dcm –subject bert –all~400MB

9. 9Upon Completion… bert scripts mri surf label stats recon-all.log recon-all.done Just because it finishes “without error” does not mean that everything is ok!Send us recon-all.log when you have problems! freesurfer@nmr.mgh.harvard.edu

10. 10Upon Completion… bert scripts mri surf label stats orig.mgzT1.mgzbrainmask.mgzwm.mgzaseg.mgzmgz = “compressed mgh” format (like nifti) unique to FreeSurferrawavg.mgzothers: nu.mgz, norm.mgz, wmparc.mgz, aparc+aseg.mgz, ribbon.mgz

11. 11Upon Completion… bert scripts mri surf label stats orig.mgzT1.mgzbrainmask.mgzwm.mgzaseg.mgzrawavg.mgzNative Anatomical Spaceeg, 1x1x1.2mm3 , 256x256x128“Conformed” Anatomical Space1x1x1mm3 , 256x256x256

12. 12Upon Completion… bert scripts mri surf label stats lh.origlh.whitelh.piallh.inflatedlh.sphere.regrh.origrh.whiterh.pialrh.inflatedrh.sphere.reglh.thickness and rh.thickness, ?h.curv, ?h.sulc

13. 13Upon Completion… bert scripts mri surf label stats lh.aparc.annotrh.aparc.annotlh.aparc.a2009s.annotrh.aparc.a2009s.annotDesikan/Killiany AtlasDestrieux Atlas

14. 14Upon Completion… bert scripts mri surf label stats aseg.stats – subcortical volumetric statswmparc.stats – white matter segmentation volumetric statslh.aparc.stats – left hemi Desikan/Killiany surface statsrh.aparc.stats – right hemi Desikan/Killiany surface statslh.aparc.a2009.stats – left hemi Destrieux rh.aparc.a2009.stats – right hemi Destrieux stats files are text files with summary information, eg: volume of left amygdala average thickness in superior temporal gyrus

15. Some of the Processing Steps…15

16. Native Anatomical Space 1x1x1.1mm, 256x256x128, SagConformed Anatomical Space 1x1x1mm, 256x256x256, Cor“Anatomical Space”orig.mgzSurfacesParcellationsSegmentationsConform Steporig.mgzmrirawavg.mgzbertrawavg.mgz

17. 17Talairach TransformComputes 12 DOF transform matrixDoes NOT resample to Talaiarch space!MNI305 templateMostly used to report coordinatestransformstalairach.xfm  text file with matrix bert scripts mri surf label stats

18. 18Intensity BiasLeft side of the image much brighter than right sideWorse with many coilsMakes gray/white segmentation difficultmriT1.mgzbert

19. 19Skull StripRemoves all non-brainSkull, Eyes, Neck, Durabrainmask.mgz (cf, brain.mgz)T1.mgzbrainmask.mgzbrainmask.mgzmribert

20. 20Automatic Volume Labeling Used to fill in subcortical structures for creating subcortical mass Useful in its own right aseg.mgz More in ROI TalkASeg Volumeaseg.mgzmribertAtlas: $FREESURFER_HOME/average/RB_all_2008-03-26

21. 21“White Matter” SegmentationSeparates white matter from everything elseUses aseg to “fill in” subcortical structuresCerebellum removed, brain stem still therewm.mgz -- “wm” not a very good name!wm.mgzmribert

22. 22Fill and Cut (Subcortical Mass)WM Volume (wm.mgz)Filled Volume (filled.mgz)(Subcortical Mass)Fills in any holes.Removes any islandsRemoves brain stemSeparates hemispheres (each hemi has different value) filled.mgz = “Subcortical Mass”

23. 23Surface ExtractionHemispheres separatedFit to wm.mgz1mm resolutionRough, jaggedwm.mgzlh.origrh.origsurfbertlh.origrh.orig

24. 24Surface ModelMesh (“Finite Element”)Vertex = point of trianglesNeighborhoodXYZ at each vertexTriangles/Faces ~ 300,000Vertices ~ 140,000Area, DistanceCurvature, Thickness

25. 25Volume vs Surface ModelVolumeuniform gridvoxel is an intersection of grid linescolumns, rows, slicesvoxel size/distancevoxel assigned a valueXYZSurfaceNON-uniform gridvertex is an intersection of triangleseach vertex has an indexdistance between vertices ~1mmvertex assigned a valueXYZVector of vertex values (~140,000)

26. 26White Matter SurfaceNudge orig surfaceFollow T1 intensity gradientsSmoothness constraintVertex identity preservedorig surfacewhite surfacelh.whiterh.white

27. 27Pial SurfaceNudge white surfaceFollow T1 intensity gradientsVertex identity preserved

28. 28Pial surf grows from white surfErrors in pial surface placement are typically caused by underlying errors in the white matter placement, and can be corrected by interventions such as white matter control points.

29. 29Non-Cortical Areas of Surface Amygdala, Putamen, Hippocampus, Caudate, Ventricles, CC?h.cortex.label

30. 30Inflation: 2D Surface in 3D SpaceWhite Surface Pial SurfaceNudge verticesNo intensity constraintSee inside sulciUsed for sphere

31. 31Cortical Thicknesswhite/gray surfacepial surfacelh.thickness, rh.thicknessDistance between white and pial surfacesOne value per vertexSurface-based more accurate than volume-basedmm“Overlay”, “Heat map”

32. 32Curvature (Radial)Circle tangent to surface at each vertexCurvature measure is 1/radius of circleOne value per vertexSigned (sulcus/gyrus)lh.curv, rh.curv“Overlay”, “Red/Green”

33. 33Spherical RegistrationSulcal MapSpherical InflationHigh-Dimensional Non-linearRegistration toSpherical TemplateAtlas template is called “fsaverage”More in surface-based analysis talk.lh.sphere, rh.spherelh.sphere.reg, rh.sphere.reg

34. 34Automatic Cortical Parcellation Fine-tune based onindividual anatomySpherical Atlas based on Manual LabelingMap to IndividualThru Spherical RegNote: Similar methodology to volume labelingMore in the Anatomical ROI talk{lh,rh}.aparc.annotAnnotation overlay

35. 35Surface Overlayslh.sulc on inflatedlh.curv on inflatedlh.thickness on inflatedValue for each vertexColor indicates valueColor: gray, red/green, heat, color tableRendered on any surfacefMRI/Stat Maps toolh.aparc.annot on inflatedlh.sulc on piallh.curv on inflatedfMRI on inflated

36. 36ROI Summaries:Index SegId NVoxels Volume_mm3 StructName normMean normStdDev normMin normMax normRange 1 1 0 0.0 Left-Cerebral-Exterior 0.0000 0.0000 0.0000 0.0000 0.0000 2 2 265295 265295.0 Left-Cerebral-White-Matter 106.6763 8.3842 35.0000 169.0000 134.0000 3 3 251540 251540.0 Left-Cerebral-Cortex 81.8395 10.2448 29.0000 170.0000 141.0000 4 4 7347 7347.0 Left-Lateral-Ventricle 42.5800 12.7435 21.0000 90.0000 69.0000 5 5 431 431.0 Left-Inf-Lat-Vent 66.2805 11.4191 30.0000 95.0000 65.0000 6 6 0 0.0 Left-Cerebellum-Exterior 0.0000 0.0000 0.0000 0.0000 0.0000 ….$SUBJECTS_DIR/bert/stats aseg.stats – volume summaries ?h.aparc.stats – desikan/killiany surface summaries ?h.aparc.a2009s.stats – destrieux surface summaries wmparc.stats – white matter parcellationRoutines to generate spread sheets of group data asegstats2table --help aparcstats2table --helpMore info in Anatomical ROI talk.

37. 37Overview $SUBJECTS_DIR /bert scripts mri surf label stats recon-all –i file.dcm –subject bert –allorig.mgzlh.inflatedlh.aparc.annotaseg.stats recon-all.log

38. 38Tutorial Tips Do not run multiple instances of Freeview at the same time unless you have > 8GB RAM.If you are running a command in the foreground, you should not type additional commands in that terminal (command prompt will be missing)RightLeftVolume Viewer (Freeview) Radiological Orientation

39. 39What to do next

40. Getting AnswersMail Archive40Wikirecon-all -helpmri_convert -help$FREESURFER_HOME/docsSend questions to:freesurfer@nmr.mgh.harvard.edu

41. 41What is a "subject"? What is the SUBJECTS_DIR? What does it mean to conform the volume? Are the FS results in Talairach/mni305 or native space? What is the wm.mgz file? What is the medial wall? Will the surface be accurate in the medial wall? What is the difference between a surface and a surface overlay? What does "?h" mean? How do you get help? Pop Quiz!

42. 42End of Presentationhttp://www.bostonglobe.com/ideas/2017/09/15/uncommon-knowledge-from-rent-rivalry/UzTx3m7HSyweIlav2EB6QL/story.html

43. 43Intensity NormalizationRemoves B1 bias fieldNU (MNI) nu.mgzPresegmentation (T1.mgz)Most WM = 110 intensityPre- and Post-Skull Stripnu.mgzmribertT1.mgzT1.mgznu.mgz110.9 ±1.8108.9 ±1.5110.0 ±0.0

44. 44ResultsVolumesSurfacesSurface OverlaysROI Summaries

45. 45Volumesorig.mgz$SUBJECTS_DIR/bert/mriAll “Conformed” 2563, 1mm3Many more …aseg.mgzT1.mgzbrainmask.mgzwm.mgz filled.mgzSubcortical Massaparc+aseg.mgzVolume Viewer:tkmedit

46. 46Surfacesorigwhitepialinflatedsphere,sphere.regpatch (flattened)$SUBJECTS_DIR/bert/surfNumber/Identity of vertices stays the same (except patches)XYZ Location ChangesFlattening not done as part of standard reconstructionSurface Viewer:tksurfer

47. 47Topological DefectsFornixPallidum and PutamenhippocampusVentricles and CaudateCortical Defects Holes Handles Automatically Fixed

48. 48Subject Folder Directory Treebert scripts mri surf label statsorig.mgz T1.mgz brain.mgz wm.mgz aseg.mgz recon-all –i file.dcm –subject bert –all

49. 49Surface Reconstruction OverviewInput: T1-weighted (MPRAGE,SPGR)Find white/gray surfaceFind pial surface“Find” = create meshVertices, neighbors, triangles, coordinatesAccurately follows boundaries between tissue types“Topologically Correct” closed surface, no donut holesno self-intersectionsGenerate surface-based cross-subject registrationLabel cortical folding patternsSubcortical Segmentation along the way

50. 50Find “Subcortical Mass”All White Matter All Subcortical StructuresVentriclesExcludes brain stem and cerebellumHemispheres separatedConnected (no islands)Many Stages … More Later …

51. 51MGZ File Format001.mgz mgz = compressed MGH file Can store 4D (like NIFTI) cols, rows, slices, frames Generic: volumes and Surfaces Eg, Typical Anatomical volume: 256 x 256 x 128 x 1 “Volume-encoded” Surface Files nvertices, 1, 1, frames (eg, 163214 x 1 x 1 x 40) No geometry information lh.thickness.sm10.mgz

52. 52Other File Formats Surface: Vertices, XYZ, neighbors (lh.white) Curv: lh.curv, lh.sulc, lh.thickness Annotation: lh.aparc.annot Label: lh.pericalcarine.label Unique to FreeSurfer FreeSurfer can read/write: NIFTI, Analyze, MINC FreeSurfer can read: DICOM, Siemens IMA, AFNI

53. 53Fully Automated ReconstructionCome back in 20 hours …Check your results – do the white and pial surfaces follow the boundaries?-- Can be broken upLaunch reconstruction: recon-all –i file.dcm –subject bert –allWhere file.dcm is one file from the correct (T1-weighted)MR series.

54. 54SUBJECTS_DIR Environment Variablebert$SUBJECTS_DIRfredjennymargaret …Subjectrecon-all –i file.dcm –subject bert –all

55. 55FreeSurfer Directory Treebertscripts surf label mri statsorig.mgz T1.mgz brain.mgz wm.mgz aseg.mgz SubjectSubject NameEach data set has its own unique SubjectId (eg, bert)recon-all –i file.dcm –subject bert –all

56. 56Sulcal Depthlh.sulc, rh.sulclh.curv, rh.curv

57. 57Tessellation and Topology FixingMosaic of triangles (“tessellation”)Errors: Donut holes, handlesAutomatic topology fixerorig surface surf/lh.orig surf/rh.orig

58. 58Pial surf grows from white surf

59. 59Motion Correction and Averaging001.mgz002.mgz+rawavg.mgzorig001.mgz 002.mgzmrirawavg.mgzDoes not change native resolution.Usually only need one.bert

60. 60Getting FreeSurfer surfer.nmr.mgh.harvard.edu Register Download Mailing List Wiki: surfer.nmr.mgh.harvard.edu/fswiki Platforms: Linux Mac Windows (VirtualBox) Installed in $FREESURFER_HOME

61. 61Download & Install

62. 62Overviewrecon-all –i file.dcm –subject bert –all