The alignment will be performed in two stages. First, a 3×3 linear transformation matrix will be estimated and applied to the data. Then a spline based transformation will be estimated and applied to the linearly transformed data.
There are 8 pieces of data, landmarks and triangulated surfaces for atlas and target hippocampus and amygdala.
- Atlas landmarks: amygdala_01_landmarks.txt, hippocampus_01_landmarks.txt
- Atlas surfaces: amygdala_01_surface.byu, hippocampus_01_surface.byu
- Target landmarks: amygdala_05_landmarks.txt,hippocampus_05_landmarks.txt
- Target surfaces: amygdala_05_surface.byu,hippocampus_05_surface.byu
Use read_txt_landmarks.m with the filename as an input to read landmarks into a matlab array. The size of the array will be N by 3, for N = 20 for amygdala, and N = 38 for hippocampus. There are a total of 58 landmarks for each the pair of structures.
Use read_byu_surface.m with the filename as an input to read vertices and faces matlab arrays. This will output a vertex array, containing a one 3D vertex per row. In addition, it will contain a face array, containing 3 integers per row. Each of these integers corresponds to a row of the vertex array, and describes how they should be connected to form triangles.
Results are in Generated Images folder with code in hip_amyg.m