Skip to content

aseresti/MR_Flow_Assessment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

4D Flow MRI Flow Assessment

The goal of this project is to post process the 4D Flow MRI image files of the 3D printed tricuspid valve of the aorta to extract the Pixel Magnitude and Velocity Magnitude of the inflow and outflow of the valve. This file consists of the following sections:

Dataset

The dataset was shared with our group from the collabolator at UofT and Sickkids hospital of Toronto. The paper is published on 3D Printing in Medicin 2020. The dataset consists of the Dicom files of 4D flow MRI of a 3D printed valve. The visualization and quantitaive analysis of the MR data were done and data were written into 25 files in VTK format. The goal of this project is to extract the pixel magnitude and flow of the VTK file along the time steps to validate the quantitative processing step.

Segmentation and Meshing

The first step of the post processing is to segment and mesh the VTK data. The 3D printed vessel has flexible walls, as a result the geometry is different for each image. Because the changes in between consecutive images are negligble, the dataset of 25 images was devided into 5 subsets and a segmentation was assigned to each subset on SimVascular software. A mesh were also generated based on the segmentation for each subset. The global mesh edge step was set to 0.003 on SimVascular according to the size of the vessel. The vessel is along the z axis.

1 2

3 4

5

Data Projection

The next step is to project the pixel magnitude scalar value and the velocity array on each point of the mesh. To that end a script is provided to convert all of the VTK images into vti format. To run this script use the following command line:

$ python src/ConvertvtkToVTI.py -InputFolder /path/to/the/vtk/image/folder

The ProjectImageToMesh script uses the vtkProbeFilter to project the scalar and vector values to the mesh points. The AutomateProjection script uses the previous script and does the projection automatically given tow input folders containing vti images and vtu meshes, so there is no need to run the code image by image. To run this script use the following command:

$ python src/AutomateProjection -InputImageFolder /path/to/the/vti/image/folder -InputMeshFolder /path/to/the/vtu/mesh/folder

Results

Finally to acquire the pixel and velocity magnitude results InputOutputFlow script is used. In this script, two cross sections one in the inflow and the other one in the outflow were selected the same as the sections selected on the paper. Next, to exclude the effect of the wall a vtkSphere filter was set into the cross section to only take 80% of the inner circle of the cross section. Finally, the average value of the pixel value and velocity vector magnitude across the cross section is calculated. Using a loop over volumetric geometeries to take the inflow and outflow averaged values. The results are provided below:

About

This repository contains the codes for simulations of a flow in a tube

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages