This repository contains MATLAB code to determine the fractional myocardial mass. Example centerlines and myocardium are provided in the examples folder. After the myocardium has been associated with each vessel the vessel-specific myocardium volume are displayed. The vessel-specific volumes can finally be saved as a .txt file.
- From the MATLAB command window run FMM_GUI.m.
- Press the Load Centerlines button to read vessel centerlines. This should be done for both left and right coronaries.
- Press the Load Myocardium button and read the myocardium file.
- To merge centerline segments into a larger centerline e.g. LAD select the centerlines and move to the next panel. Press the Merge button.
- Repeat until all centerlines have been merged.
- Press the FMM button and wait for progress bar to complete.
This must be a .vtp ascii file. This must be generated by VMTK. Please use the generate_centerlines.py file in the utilities folder for the correct method to generate this file.
This must be a .vtu ascii file. This is a tetrahedral mesh of the myocardium. This file can be generated by VMTK or other programs that support the .vtu format. If you have a .stl file of the myocardium surface use the generate_mesh.py file in the utilities folder to create the .vtu mesh file.
MATLAB (tested with R2018b) VMTK
This repository uses dijkstra.m from Joseph Kirk in order to find the shortest path along the mesh.