SlideShare a Scribd company logo
1 of 30
LINEAR DEFORMATIONS AND BASIC
VOLUMETRIC IMAGING
LEAD-DBS WORKSHOP QUEENSLAND| FEB 2020 | Friederike Irmen
friederike.irmen@charite.deLead-DBS Workshop
Helpful websites
https://netstim.gitbook.io/leaddbs/
friederike.irmen@charite.deLead-DBS Workshop
Helpful websites
http://www.netstim.berlin/
friederike.irmen@charite.deLead-DBS Workshop
ELECTRODE RECONSTRUCTION AND VTA MODELLING
friederike.irmen@charite.deLead-DBS Workshop
ELECTRODE RECONSTRUCTION AND VTA MODELLING
Pre-OP Post-OP
MRI CT–or–
co-register
co-register
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
Fused pre- and post
“Normalize”
(non-linear)
MNI space
MNI 152 2009a/b/c Nonlinear series
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
LINEAR (AFFINE) TRANSFORMATION
- Preserves straight lines
- Preserves parallelism
- Preserves ratio between points on a line
- (Special case: Rigid transformation:
Distance between two points remains the same)
Used to register different images of the same subject!
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
• Image itself is just a large matrix of data
• Divided into “voxels” (= volumetric pixels )
•
• Data header contains information
WHAT IS AN IMAGE?
 Data type (integer, floating point etc)
 Data scaling
 Image dimensions
 Voxel size
 Voxelmm transformation matrix
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
World coordinate system
Anatomical coordinate system
Image coordinate system
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
(mm)
(voxel)
World coordinate systemImage coordinate system
Transformation matrix
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
• Values in “voxel space” are defined
purely in terms of where they occur in
the image
• Values in “world space” are defined
in meaningful units (mm) of distance
from a point of origin
• Changing the transformation matrix
changes the relationship between
voxel coords and world coords
• The matrix can be used to store
transformations without having to
resample (reslice) the image
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
– Matlab Demo –
Voxel vs. World space
Vox_World_Space_Demo.m
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
Changing the
transformation matrix
changes the relationship
between voxel coords and
world coords
MNI template
TRANSFORMATION MATRIX OF THE MNI TEMPLATE
Transformation
Matrix
• Stored in Nifti header
• Allows for conversion from voxel to world
coordinates
This example (Lead-DBS T1 MNI-template):
• Voxel size: 0.5mm x 0.5mm x 0.5mm
• Dimension: 394 x 466 x 378
• Origin: [197 269 145]
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
Transformation
Matrix
Voxel
Index
World
coordinates
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
http://matrixmultiplication.xyz/
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
Transformation
Matrix
Voxel
Index
World
coordinates
= Origin of
MNI template
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
LINEAR (AFFINE) TRANSFORMATION
- Preserves straight lines
- Preserves parallelism
- Preserves ratio between points on a line
- (Special case: Rigid transformation:
Distance between two points remains the same)
Used to register different images of the same subject!
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
REALIGN ONE IMAGE TO ANOTHER
Common Transformations:
1. Rigid body (6 DOF) – translation and rotation
2. Affine (12 DOF) – translation, rotation, scaling and shearing
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
• Find optimal values for these 6 parameters
• Optimal values give the minimum value for the sum of squared difference between
consecutive images
• Successive approximation - start with one set of parameters and iteratively try different
combinations in order to find minimum sum of squared diffs
RIGID BODY TRANSFORMATION
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
TRANSLATION
If a point x is translated by q units, the transformation is
y=x+q
In matrix terms, this can be considered as
𝑦1
𝑦2
𝑦3
1
=
1 0 0 𝑞1
0 1 0 𝑞2
0 0 1 𝑞3
0 0 0 1
x
𝑥1
𝑥2
𝑥3
1
y1= 1*x1+0*x2+0*x3+q1*1
y2=0*x1+1*x2+0*x3+q2*1
y3=0*x1+0*x2+1*x3+q3*1
(y4)=0*x1+0*x2+0*x3+1*1
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
ROTATION
The matrix describing a rotation of q radians
is performed by:
𝑦1
𝑦2
𝑦3
1
=
1 0 0 0
0 cos(𝑞) sin(𝑞) 0
0 −sin(𝑞) cos(𝑞) 0
0 0 0 1
x
𝑥1
𝑥2
𝑥3
1
Along
1. Dimension
𝑦1
𝑦2
𝑦3
1
=
1 cos(𝑞) sin(𝑞) 0
0 1 0 0
0 −sin(𝑞) cos(𝑞) 0
0 0 0 1
x
𝑥1
𝑥2
𝑥3
1
Along
2. Dimension
𝑦1
𝑦2
𝑦3
1
=
1 cos(𝑞) sin(𝑞) 0
0 −sin(𝑞) cos(𝑞) 0
0 0 1 0
0 0 0 1
x
𝑥1
𝑥2
𝑥3
1
Along
3. Dimension
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
RIGID BODY TRANSFORMATION
T =
1 0 0 𝑞1
0 1 0 𝑞2
0 0 1 𝑞3
0 0 0 1
M = TxR
R =
1 0 0 0
0 cos(𝑞4) sin(𝑞4) 0
0 −sin(𝑞4) cos(𝑞4) 0
0 0 0 1
x
1 cos(𝑞5) 𝑠𝑖𝑛(𝑞5) 0
0 1 0 0
0 −𝑠𝑖𝑛(𝑞5) cos(𝑞5) 0
0 0 0 1
x
1 cos(𝑞6) 𝑠𝑖𝑛(𝑞6) 0
0 −sin(𝑞6) cos(𝑞6) 0
0 0 1 0
0 0 0 1
Optimizing these 6 parameters in order to maximize similarity between two
images
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
Translation Rotation
ShearZoom
rigidnon-rigid
Videos by Jan Rödiger
AFFINE TRANSFORMATION
AFFINE TRANSFORMATION: ZOOM
Zooming allows for transformations between
images with different sizes and can be
represented as follows:
𝑦1
𝑦2
𝑦3
1
=
𝑞1 0 0 0
0 𝑞2 0 0
0 0 𝑞3 0
0 0 0 1
x
𝑥1
𝑥2
𝑥3
1
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
AFFINE TRANSFORMATION: SHEAR
Shearing by parameters 𝑞1, 𝑞2 and 𝑞3 can be
performed by the following matrix
𝑦1
𝑦2
𝑦3
1
=
1 𝑞1 𝑞2 0
0 1 𝑞3 0
0 0 1 0
0 0 0 1
x
𝑥1
𝑥2
𝑥3
1
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
Videos by Jan Rödiger
fixed image
moving image
Translation Rotation Zoom Shear
M =
1 0 𝑞1
0 1 𝑞2
0 0 1
x
cos(𝑞3) −sin(𝑞3) 0
sin(𝑞3) cos(𝑞3) 0
0 0 1
x
𝑞4 0 0
0 𝑞5 0
0 0 1
x
1 𝑞6 0
0 1 0
0 0 1
– Hands on Session –
Data import and co-registration
using Lead-DBS
friederike.irmen@charite.deLead-DBS Workshop
Linear Deformations in Lead-DBS
friederike.irmen@charite.deLead-DBS Workshop
ELECTRODE RECONSTRUCTION AND VTA MODELLING
1. The dataset: image
types, requirements
2. Data import
3. Coregistration (here:
MRI to CT)

More Related Content

Similar to Linear Transformations

HBaseCon 2012 | Storing and Manipulating Graphs in HBase
HBaseCon 2012 | Storing and Manipulating Graphs in HBaseHBaseCon 2012 | Storing and Manipulating Graphs in HBase
HBaseCon 2012 | Storing and Manipulating Graphs in HBaseCloudera, Inc.
 
Multi-hypothesis projection-based shift estimation for sweeping panorama reco...
Multi-hypothesis projection-based shift estimation for sweeping panorama reco...Multi-hypothesis projection-based shift estimation for sweeping panorama reco...
Multi-hypothesis projection-based shift estimation for sweeping panorama reco...Tuan Q. Pham
 
20121020 semi local-string_comparison_tiskin
20121020 semi local-string_comparison_tiskin20121020 semi local-string_comparison_tiskin
20121020 semi local-string_comparison_tiskinComputer Science Club
 
Lec 03 - Combinational Logic Design
Lec 03 - Combinational Logic DesignLec 03 - Combinational Logic Design
Lec 03 - Combinational Logic DesignVajira Thambawita
 
Passive network-redesign-ntua
Passive network-redesign-ntuaPassive network-redesign-ntua
Passive network-redesign-ntuaIEEE NTUA SB
 

Similar to Linear Transformations (9)

image compression ppt
image compression pptimage compression ppt
image compression ppt
 
HBaseCon 2012 | Storing and Manipulating Graphs in HBase
HBaseCon 2012 | Storing and Manipulating Graphs in HBaseHBaseCon 2012 | Storing and Manipulating Graphs in HBase
HBaseCon 2012 | Storing and Manipulating Graphs in HBase
 
Image Compression, Introduction Data Compression/ Data compression, modelling...
Image Compression, Introduction Data Compression/ Data compression, modelling...Image Compression, Introduction Data Compression/ Data compression, modelling...
Image Compression, Introduction Data Compression/ Data compression, modelling...
 
Algebra
AlgebraAlgebra
Algebra
 
Multi-hypothesis projection-based shift estimation for sweeping panorama reco...
Multi-hypothesis projection-based shift estimation for sweeping panorama reco...Multi-hypothesis projection-based shift estimation for sweeping panorama reco...
Multi-hypothesis projection-based shift estimation for sweeping panorama reco...
 
20121020 semi local-string_comparison_tiskin
20121020 semi local-string_comparison_tiskin20121020 semi local-string_comparison_tiskin
20121020 semi local-string_comparison_tiskin
 
Lec 03 - Combinational Logic Design
Lec 03 - Combinational Logic DesignLec 03 - Combinational Logic Design
Lec 03 - Combinational Logic Design
 
Passive network-redesign-ntua
Passive network-redesign-ntuaPassive network-redesign-ntua
Passive network-redesign-ntua
 
Realtime Analytics
Realtime AnalyticsRealtime Analytics
Realtime Analytics
 

More from Andreas Horn

Lead dbs Workshop 2020 Brisbane Programme
Lead dbs Workshop 2020 Brisbane ProgrammeLead dbs Workshop 2020 Brisbane Programme
Lead dbs Workshop 2020 Brisbane ProgrammeAndreas Horn
 
Task DBS & connectomics
Task DBS & connectomicsTask DBS & connectomics
Task DBS & connectomicsAndreas Horn
 
Slicer Troubleshooting
Slicer TroubleshootingSlicer Troubleshooting
Slicer TroubleshootingAndreas Horn
 
Normative Connectomes Leadmapper
Normative Connectomes LeadmapperNormative Connectomes Leadmapper
Normative Connectomes LeadmapperAndreas Horn
 
Lead Group Analyses
Lead Group AnalysesLead Group Analyses
Lead Group AnalysesAndreas Horn
 
Electrode Reconstructions VTA Modelling
Electrode Reconstructions VTA ModellingElectrode Reconstructions VTA Modelling
Electrode Reconstructions VTA ModellingAndreas Horn
 
Discriminative Tracts
Discriminative TractsDiscriminative Tracts
Discriminative TractsAndreas Horn
 
Structural Connectomics dMRI
Structural Connectomics dMRIStructural Connectomics dMRI
Structural Connectomics dMRIAndreas Horn
 
Connectomic Deep Brain Stimulation
Connectomic Deep Brain StimulationConnectomic Deep Brain Stimulation
Connectomic Deep Brain StimulationAndreas Horn
 
Nonlinear Deformations Atlases Spaces and Advanced Concepts
Nonlinear Deformations Atlases Spaces and Advanced ConceptsNonlinear Deformations Atlases Spaces and Advanced Concepts
Nonlinear Deformations Atlases Spaces and Advanced ConceptsAndreas Horn
 
Function & Anatomy of the Basal Ganglia
Function & Anatomy of the Basal GangliaFunction & Anatomy of the Basal Ganglia
Function & Anatomy of the Basal GangliaAndreas Horn
 
Introduction to Lead-DBS
Introduction to Lead-DBSIntroduction to Lead-DBS
Introduction to Lead-DBSAndreas Horn
 
Empowering tools for Neuroimaging
Empowering tools for NeuroimagingEmpowering tools for Neuroimaging
Empowering tools for NeuroimagingAndreas Horn
 

More from Andreas Horn (13)

Lead dbs Workshop 2020 Brisbane Programme
Lead dbs Workshop 2020 Brisbane ProgrammeLead dbs Workshop 2020 Brisbane Programme
Lead dbs Workshop 2020 Brisbane Programme
 
Task DBS & connectomics
Task DBS & connectomicsTask DBS & connectomics
Task DBS & connectomics
 
Slicer Troubleshooting
Slicer TroubleshootingSlicer Troubleshooting
Slicer Troubleshooting
 
Normative Connectomes Leadmapper
Normative Connectomes LeadmapperNormative Connectomes Leadmapper
Normative Connectomes Leadmapper
 
Lead Group Analyses
Lead Group AnalysesLead Group Analyses
Lead Group Analyses
 
Electrode Reconstructions VTA Modelling
Electrode Reconstructions VTA ModellingElectrode Reconstructions VTA Modelling
Electrode Reconstructions VTA Modelling
 
Discriminative Tracts
Discriminative TractsDiscriminative Tracts
Discriminative Tracts
 
Structural Connectomics dMRI
Structural Connectomics dMRIStructural Connectomics dMRI
Structural Connectomics dMRI
 
Connectomic Deep Brain Stimulation
Connectomic Deep Brain StimulationConnectomic Deep Brain Stimulation
Connectomic Deep Brain Stimulation
 
Nonlinear Deformations Atlases Spaces and Advanced Concepts
Nonlinear Deformations Atlases Spaces and Advanced ConceptsNonlinear Deformations Atlases Spaces and Advanced Concepts
Nonlinear Deformations Atlases Spaces and Advanced Concepts
 
Function & Anatomy of the Basal Ganglia
Function & Anatomy of the Basal GangliaFunction & Anatomy of the Basal Ganglia
Function & Anatomy of the Basal Ganglia
 
Introduction to Lead-DBS
Introduction to Lead-DBSIntroduction to Lead-DBS
Introduction to Lead-DBS
 
Empowering tools for Neuroimaging
Empowering tools for NeuroimagingEmpowering tools for Neuroimaging
Empowering tools for Neuroimaging
 

Recently uploaded

Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .Poonam Aher Patil
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformationAreesha Ahmad
 
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLKochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLkantirani197
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticssakshisoni2385
 
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICESAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICEayushi9330
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and ClassificationsAreesha Ahmad
 
300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptxryanrooker
 
The Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxThe Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxseri bangash
 
Grade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its FunctionsGrade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its FunctionsOrtegaSyrineMay
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000Sapana Sha
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)Areesha Ahmad
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Silpa
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxMohamedFarag457087
 
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate ProfessorThyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate Professormuralinath2
 
FAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceFAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceAlex Henderson
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learninglevieagacer
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)Areesha Ahmad
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPirithiRaju
 
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.Silpa
 
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedConnaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedDelhi Call girls
 

Recently uploaded (20)

Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformation
 
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLKochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICESAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
 
300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx
 
The Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxThe Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptx
 
Grade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its FunctionsGrade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its Functions
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptx
 
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate ProfessorThyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
 
FAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceFAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical Science
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
 
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedConnaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
 

Linear Transformations

  • 1. LINEAR DEFORMATIONS AND BASIC VOLUMETRIC IMAGING LEAD-DBS WORKSHOP QUEENSLAND| FEB 2020 | Friederike Irmen
  • 7. Fused pre- and post “Normalize” (non-linear) MNI space MNI 152 2009a/b/c Nonlinear series friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 8. LINEAR (AFFINE) TRANSFORMATION - Preserves straight lines - Preserves parallelism - Preserves ratio between points on a line - (Special case: Rigid transformation: Distance between two points remains the same) Used to register different images of the same subject! friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 9. • Image itself is just a large matrix of data • Divided into “voxels” (= volumetric pixels ) • • Data header contains information WHAT IS AN IMAGE?  Data type (integer, floating point etc)  Data scaling  Image dimensions  Voxel size  Voxelmm transformation matrix friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 10. World coordinate system Anatomical coordinate system Image coordinate system friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS (mm) (voxel)
  • 11. World coordinate systemImage coordinate system Transformation matrix friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 12. • Values in “voxel space” are defined purely in terms of where they occur in the image • Values in “world space” are defined in meaningful units (mm) of distance from a point of origin • Changing the transformation matrix changes the relationship between voxel coords and world coords • The matrix can be used to store transformations without having to resample (reslice) the image friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 13. – Matlab Demo – Voxel vs. World space Vox_World_Space_Demo.m friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 14. Changing the transformation matrix changes the relationship between voxel coords and world coords MNI template
  • 15. TRANSFORMATION MATRIX OF THE MNI TEMPLATE Transformation Matrix • Stored in Nifti header • Allows for conversion from voxel to world coordinates This example (Lead-DBS T1 MNI-template): • Voxel size: 0.5mm x 0.5mm x 0.5mm • Dimension: 394 x 466 x 378 • Origin: [197 269 145] friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 18. Transformation Matrix Voxel Index World coordinates = Origin of MNI template friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 19. LINEAR (AFFINE) TRANSFORMATION - Preserves straight lines - Preserves parallelism - Preserves ratio between points on a line - (Special case: Rigid transformation: Distance between two points remains the same) Used to register different images of the same subject! friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 20. REALIGN ONE IMAGE TO ANOTHER Common Transformations: 1. Rigid body (6 DOF) – translation and rotation 2. Affine (12 DOF) – translation, rotation, scaling and shearing friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 21. • Find optimal values for these 6 parameters • Optimal values give the minimum value for the sum of squared difference between consecutive images • Successive approximation - start with one set of parameters and iteratively try different combinations in order to find minimum sum of squared diffs RIGID BODY TRANSFORMATION friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 22. TRANSLATION If a point x is translated by q units, the transformation is y=x+q In matrix terms, this can be considered as 𝑦1 𝑦2 𝑦3 1 = 1 0 0 𝑞1 0 1 0 𝑞2 0 0 1 𝑞3 0 0 0 1 x 𝑥1 𝑥2 𝑥3 1 y1= 1*x1+0*x2+0*x3+q1*1 y2=0*x1+1*x2+0*x3+q2*1 y3=0*x1+0*x2+1*x3+q3*1 (y4)=0*x1+0*x2+0*x3+1*1 friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 23. ROTATION The matrix describing a rotation of q radians is performed by: 𝑦1 𝑦2 𝑦3 1 = 1 0 0 0 0 cos(𝑞) sin(𝑞) 0 0 −sin(𝑞) cos(𝑞) 0 0 0 0 1 x 𝑥1 𝑥2 𝑥3 1 Along 1. Dimension 𝑦1 𝑦2 𝑦3 1 = 1 cos(𝑞) sin(𝑞) 0 0 1 0 0 0 −sin(𝑞) cos(𝑞) 0 0 0 0 1 x 𝑥1 𝑥2 𝑥3 1 Along 2. Dimension 𝑦1 𝑦2 𝑦3 1 = 1 cos(𝑞) sin(𝑞) 0 0 −sin(𝑞) cos(𝑞) 0 0 0 1 0 0 0 0 1 x 𝑥1 𝑥2 𝑥3 1 Along 3. Dimension friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 24. RIGID BODY TRANSFORMATION T = 1 0 0 𝑞1 0 1 0 𝑞2 0 0 1 𝑞3 0 0 0 1 M = TxR R = 1 0 0 0 0 cos(𝑞4) sin(𝑞4) 0 0 −sin(𝑞4) cos(𝑞4) 0 0 0 0 1 x 1 cos(𝑞5) 𝑠𝑖𝑛(𝑞5) 0 0 1 0 0 0 −𝑠𝑖𝑛(𝑞5) cos(𝑞5) 0 0 0 0 1 x 1 cos(𝑞6) 𝑠𝑖𝑛(𝑞6) 0 0 −sin(𝑞6) cos(𝑞6) 0 0 0 1 0 0 0 0 1 Optimizing these 6 parameters in order to maximize similarity between two images friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 25. Translation Rotation ShearZoom rigidnon-rigid Videos by Jan Rödiger AFFINE TRANSFORMATION
  • 26. AFFINE TRANSFORMATION: ZOOM Zooming allows for transformations between images with different sizes and can be represented as follows: 𝑦1 𝑦2 𝑦3 1 = 𝑞1 0 0 0 0 𝑞2 0 0 0 0 𝑞3 0 0 0 0 1 x 𝑥1 𝑥2 𝑥3 1 friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 27. AFFINE TRANSFORMATION: SHEAR Shearing by parameters 𝑞1, 𝑞2 and 𝑞3 can be performed by the following matrix 𝑦1 𝑦2 𝑦3 1 = 1 𝑞1 𝑞2 0 0 1 𝑞3 0 0 0 1 0 0 0 0 1 x 𝑥1 𝑥2 𝑥3 1 friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 28. Videos by Jan Rödiger fixed image moving image Translation Rotation Zoom Shear M = 1 0 𝑞1 0 1 𝑞2 0 0 1 x cos(𝑞3) −sin(𝑞3) 0 sin(𝑞3) cos(𝑞3) 0 0 0 1 x 𝑞4 0 0 0 𝑞5 0 0 0 1 x 1 𝑞6 0 0 1 0 0 0 1
  • 29. – Hands on Session – Data import and co-registration using Lead-DBS friederike.irmen@charite.deLead-DBS Workshop Linear Deformations in Lead-DBS
  • 30. friederike.irmen@charite.deLead-DBS Workshop ELECTRODE RECONSTRUCTION AND VTA MODELLING 1. The dataset: image types, requirements 2. Data import 3. Coregistration (here: MRI to CT)