48
DTU Compute Introduction to Medical Image Analysis Rasmus R. Paulsen DTU Compute [email protected] http://www.compute.dtu.dk/courses/02511 http://www.compute.dtu.dk/courses/02512

Introduction to Medical Image Analysiscourses.compute.dtu.dk/02511/Presentations/02511 - week10.pdf · DTU Compute, Technical University of Denmark Introduction to Medical Image Analysis

Embed Size (px)

Citation preview

  • DTU Compute

    Introduction to Medical Image AnalysisRasmus R. PaulsenDTU Compute

    [email protected]

    http://www.compute.dtu.dk/courses/02511http://www.compute.dtu.dk/courses/02512

    mailto:[email protected]://www.compute.dtu.dk/courses/02511http://www.compute.dtu.dk/courses/02512

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis2 DTU Compute, Technical University of Denmark

    Lecture 10 Registration

    9.00 Lecture

    12.00 13.00 Lunch break13.00 Exercises

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis3 DTU Compute, Technical University of Denmark

    What can you do after today? Describe the clinical use of image registration Describe the different types of landmarks Annotate a set of image using anatomical landmarks Describe the objective function used for landmark based

    registration Compute the objective function when the transformation

    is given Compute the optimal translation between two sets of

    landmarks Use the rigid body transformation for image registration Use the similarity transformation for image registration

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis4 DTU Compute, Technical University of Denmark

    Image Registration The act of adjusting something to match a standard Align images

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis5 DTU Compute, Technical University of Denmark

    Image registration Monitoring of change in the individual Fusion of information from different sources in a

    clinically meaningful way Comparison of one subject with others Comparison of groups with others Comparing with an atlas

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis6 DTU Compute, Technical University of Denmark

    Data fusion

    MR CT

    Same patient two scans

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis7 DTU Compute, Technical University of Denmark

    Change detection Patient image before and after operation What has changed? Images need to be aligned before comparison

    Before operation After operation

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis8 DTU Compute, Technical University of Denmark

    Reference and template image The reference image R Template image T Transform the template so it

    fits the reference

    transformed

    T

    T

    R

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis9 DTU Compute, Technical University of Denmark

    The transformations

    Translation

    Rotation

    Scaling

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis10 DTU Compute, Technical University of Denmark

    Similarity measures The aim is to transform the template so it looks like

    the reference Looks like = Similarity measure Image similarity

    Subtract the two images and see what is left Landmark similarity

    Landmarks from the two images should be close together

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis11 DTU Compute, Technical University of Denmark

    Landmark Based Registration Landmarks placed on both reference and template image The landmark should have correspondence

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis12 DTU Compute, Technical University of Denmark

    Point correspondence Landmarks are numbered Each landmark should be placed the same place on both images

    12

    3

    12

    3

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis13 DTU Compute, Technical University of Denmark

    Landmark types Anatomical landmark

    a mark assigned by an expert that corresponds between objects in a biologically meaningful way

    Mathematical landmark a mark that is located on a

    curve according to some mathematical or geometrical property

    Pseudo landmark a mark that is constructed on a

    curve based on anatomical or mathematical landmarks

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis14 DTU Compute, Technical University of Denmark

    Landmarks

    Reference image Template image TR

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis15 DTU Compute, Technical University of Denmark

    The aim of registration Find a transformation that maps the coordinates of

    the reference to the coordinates of the template Why not the template to the reference?

    Sampling of template image:

    Backward mapping -> inverse transform

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis16 DTU Compute, Technical University of Denmark

    The Transformation Transforms point p Into point p T is for example a

    Translation Rotation Rigid body transform Similarity transform

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis17 DTU Compute, Technical University of Denmark

    The Transformation Transforms points

    from the reference

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis18 DTU Compute, Technical University of Denmark

    The parameters The parameters is a vector

    with p elements The type of transformation

    determines the number of parameters

    Translation p = 2 Rotation p = 1 Scaling p = 1

    parameters

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis19 DTU Compute, Technical University of Denmark

    Rigid body transformHow many parameters?

    A) 1B) 2C) 3D) 4E) 5 0 0 0 0 0

    A B C D E

    Chart1

    0

    0

    0

    0

    0

    Sheet1

    A0

    B0

    C0

    D0

    E0

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis20 DTU Compute, Technical University of Denmark

    Similarity transformHow many parameters?

    A) 1B) 2C) 3D) 4E) 5

    0 0 0 0 0

    A B C D E

    Chart1

    0

    0

    0

    0

    0

    Sheet1

    A0

    B0

    C0

    D0

    E0

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis22 DTU Compute, Technical University of Denmark

    Objective function The objective function

    measures how well two point sets match

    Points from the template image

    Transformed points from the reference image

    = =1

    , 2

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis23 DTU Compute, Technical University of Denmark

    Objective function The objective function

    measures how well two point sets match

    Distance between points

    DT(a5)

    b5

    = =1

    , 2

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis24 DTU Compute, Technical University of Denmark

    Objective function

    D3T(a3)

    b3D2

    T(a2)

    b2D1

    T(a1)

    b1Template

    Transformed reference

    = =1

    3

    , 2 = 12 + 22 + 32

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis25 DTU Compute, Technical University of Denmark

    Minimization / Optimization Find the set of

    parameters that minimizes the objective function

    = =1

    , 2

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis26 DTU Compute, Technical University of Denmark

    Minimization pure translation

    D3T(a3)

    b3D2

    T(a2)

    b2D1

    T(a1)

    b1Template

    Transformed reference

    F = D 21 + D 22 + D 23

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis27 DTU Compute, Technical University of Denmark

    Minimization pure translation

    D3T(a3)

    b3D2T(a2)

    b2D1

    T(a1)

    b1Template

    Transformed reference

    F = D 21 + D 22 + D 23 Decreased!

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis28 DTU Compute, Technical University of Denmark

    Minimization pure translation

    D3T(a3)

    b3D2T(a2)

    b2D1

    T(a1)

    b1Template

    Transformed reference

    F = D 21 + D 22 + D 23 Decreased!

    Overall minimum lengths!

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis29 DTU Compute, Technical University of Denmark

    ObjectivefunctionA) 600B) 50C) 100D) 900E) 300

    0 0 0 0 0

    A B C D E

    Chart1

    0

    0

    0

    0

    0

    Sheet1

    A0

    B0

    C0

    D0

    E0

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis31 DTU Compute, Technical University of Denmark

    Translation Simple shift of coordinates

    parameters

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis32 DTU Compute, Technical University of Denmark

    Translation Simple shift of coordinates

    parameters

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis33 DTU Compute, Technical University of Denmark

    Objective function for translation

    Objective function

    Translation

    Objective function for translation

    = =1

    , 2

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis34 DTU Compute, Technical University of Denmark

    Optimal function value

    = =1

    , 2

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis35 DTU Compute, Technical University of Denmark

    Optimal translation

    Objective function

    Parameters

    Optimal translation

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis36 DTU Compute, Technical University of Denmark

    Optimal translation

    Original landmarks Reference points translated

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis37 DTU Compute, Technical University of Denmark

    Decrease in F

    A) 1B) 2C) 3D) 4E) 5

    0 0 0 0 0

    A B C D E

    Chart1

    0

    0

    0

    0

    0

    Sheet1

    A0

    B0

    C0

    D0

    E0

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis39 DTU Compute, Technical University of Denmark

    Rigid body transformation Translation and rotation Rigid body = stift legeme Angles and distances are kept

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis40 DTU Compute, Technical University of Denmark

    Rigid body transformation objective function

    Transformation

    Rotation matrix

    Objective function

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis41 DTU Compute, Technical University of Denmark

    Optimal rigid body transformation The minimum of the objective function can be found

    in several ways Always start by matching the centre of masses The rotation can be found by singular value

    decomposition In 2D it can also be found in simpler ways

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis42 DTU Compute, Technical University of Denmark

    Rigid body transformation Comparing images of the same patient

    Images taken with the same scanner Compensate for different positioning in the scanner

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis43 DTU Compute, Technical University of Denmark

    Similarity transformation Translation, rotation, and isotropic scaling Angles are kept

    Solution found using SVD

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis44 DTU Compute, Technical University of Denmark

    Similarity transform Same patient different scanners

    Different pixel/voxel sizes Same patient over time

    Growing Different patients Atlas to patient

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis46 DTU Compute, Technical University of Denmark

    Image transformation The found transformation maps the coordinates of

    the reference to the coordinates of the template We want to transform the template? Backward image mapping!

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis47 DTU Compute, Technical University of Denmark

    Backward mapping Run through all the pixel in the output image Use the inverse transformation to find the position in

    the input image Use bilinear interpolation to calculate the value Put the value in the output image

    Here output image = transformed template image Input image = template image Inverse transform = the computed transform

    From reference to template

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis48 DTU Compute, Technical University of Denmark

    Hvad er forkert

    A) 1B) 2C) 3D) 4E) 5

    0 0 0 0 0

    A B C D E

    Chart1

    0

    0

    0

    0

    0

    Sheet1

    A0

    B0

    C0

    D0

    E0

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis50 DTU Compute, Technical University of Denmark

    What can you do after today? Describe the clinical use of image registration Describe the different types of landmarks Annotate a set of image using anatomical landmarks Describe the objective function used for landmark based

    registration Compute the objective function when the transformation

    is given Compute the optimal translation between two sets of

    landmarks Use the rigid body transformation for image registration Use the similarity transformation for image registration

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis51 DTU Compute, Technical University of Denmark

    Exercise Registration

    Matching of hands using landmarks Cancer treatment follow up in a brain

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis52 DTU Compute, Technical University of Denmark

    Next week Hough Transformation and Path Tracing

    Hough transform

    -50 0 50

    -400

    -200

    0

    200

    400

  • DTU Compute

    11/4/2018Introduction to Medical Image Analysis53 DTU Compute, Technical University of Denmark

    Exercises

    ?

    Introduction to Medical Image AnalysisLecture 10 RegistrationWhat can you do after today?Image RegistrationImage registrationData fusionChange detectionReference and template imageThe transformationsSimilarity measuresLandmark Based RegistrationPoint correspondenceLandmark typesLandmarksThe aim of registrationThe TransformationThe TransformationThe parametersRigid body transformHow many parameters?Similarity transformHow many parameters?Objective functionObjective functionObjective functionMinimization / OptimizationMinimization pure translationMinimization pure translationMinimization pure translationObjectivefunctionTranslationTranslationObjective function for translationOptimal function valueOptimal translationOptimal translationDecrease in FRigid body transformationRigid body transformation objective functionOptimal rigid body transformationRigid body transformationSimilarity transformationSimilarity transformImage transformationBackward mappingHvad er forkertWhat can you do after today?ExerciseNext weekExercises