Git Product home page Git Product logo

cardiomesh's Introduction

CardioMesh

This repository provides a helper class for working with the cardiac meshes produced by the CardioX pipeline. This code was tested successfully on bi-ventricular meshes produced by the SpASM method as well as the current full-heart model.

Table of Contents

  1. TO DO

Requirements

The code has been tested using the following versions:

  • trimesh==3.9.15
  • vtk==9.0.1
  • numpy==1.17.4
  • pyglet==1.5.18
  • meshio==2.3.0
  • numpy-stl==2.17.1 (for working with volumetric meshes)

Tips

You can add this repository as a submodule to your main repository, under the utils folder (or similar).

Basic description

This repo implements three classes:

  • Cardiac3DMesh: represents a single cardiac mesh or point cloud.
  • Cardiac4DMesh: represents a collection of cardiac meshes for one individual, across the cardiac cycle.
  • CardiacMeshPopulation: represents a population of cardiac meshes (either 3D or 4D), i.e. meshes for different individuals in a population.

Examples of usage

Cardiac3DMesh

Loading a mesh

from CardioMesh.CardiacMesh import Cardiac3DMesh

vtk_path = "full_heart_model.vtk"
mesh = Cardiac3DMesh(vtk_path)
mesh.show()

imagen

Extracting a partition

# This follows from the previous code snippet
# LV mesh
lv_mesh = mesh["LV"]

# LV & RV mesh
lvrv_mesh = mesh["LV", "RV"]
Displaying a mesh (in a Jupyter Notebook)
lvrv_mesh.show()

full_heart_model_lvrv

cardiomesh's People

Contributors

rbonazzola avatar cmaldonado1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.