Giter Site home page Giter Site logo

xzluo97 / mvmm-demo Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 2.0 23.28 MB

PyTorch implementation for multivariate mixture model on cardiac segmentation from multi-source images (TPAMI 2019)

License: MIT License

Python 100.00%
combined-computing medical-image-segmentation medical-image-registration multivariate-mixture-model probabilistic-graphical-models pytorch

mvmm-demo's Introduction

Multivariate Mixture Model for Combined Computing in PyTorch

This is a course project in Medical Image Analysis on “Multivariate mixture model for myocardial segmentation combining multi-source images”. The algorithm is re-implemented in PyTorch. The lecture notes for illustration and presentation is also included.

Getting Started

Project structure

The project contains PyTorch implementation of the algorithm from Multivariate mixture model on 2D multi-sequence cardiac MR images. The data can be downloaded from MS-CMRSeg-2019 challenge. The project structure is as follows:

MvMM-Demo
|-- src
|   |-- AffineGrid.py                # convert affine matrix to resampling grid
|   |-- LocalDisplacementEnergy.py   # displacement regularization, bending energy
|   |-- MvMMVEM.py                   # model construction and EM algorithm
|   |-- MvMMVEMDemo.py               # Demo: image loading, preprocessing, model optimization and result visualization
|   |-- SpatialTransformer.py        # spatial transformation module
|   |-- image_utils.py               # functions for image loading and preprocessing
|   |-- metrics.py                   # metrics computation
|   |-- utils.py                     # utility functions

Usage

Combined segmentation from a set of images is achieved by:

python MvMMVEMDemo.py 
--data_path #YOUR OWN DATA PATH#           # data path to load images
--image_names #YOUR OWN IMAGE NAMES#       # image names
--atlas_name #YOUR OWN ARLAS NAME#         # atlas name
--label_intensities 0 255                  # label intensity values
--vol_shape 256 256                        # image size
--num_subjects 3                           # number of subjects
--num_classes 2                            # number of classes
--num_subtypes 2 2                         # number of subtypes
--transform rigid                          # transformation type
--training_iters 1000                      # training iterations
--EM_steps 3                               # EM update steps
--bending_energy 1                         # bending energy coefficient

Citation

If you found the project useful, please cite our papers as below:

@article{luo2022xmetric,
  title={X-Metric: An N-Dimensional Information-Theoretic Framework for Groupwise Registration and Deep Combined Computing},
  author={Luo, Xinzhe and Zhuang, Xiahai},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year={2022},
  publisher={IEEE},
  doi={10.1109/TPAMI.2022.3225418}
}

Contact

For any questions or problems please open an issue on GitHub.

mvmm-demo's People

Contributors

xzluo97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

felix660

mvmm-demo's Issues

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.