• Stars
    star
    162
  • Rank 231,007 (Top 5 %)
  • Language
    C++
  • License
    BSD 3-Clause "New...
  • Created about 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

matlab and python wrap of crf and dense crf, both 2d and 3d are supported

SimpleCRF

Matlab and Python wrap of Conditional Random Field (CRF) and fully connected (dense) CRF for 2D and 3D image segmentation, according to the following papers:

[1] Yuri Boykov and Vladimir Kolmogorov, "An experimental comparison of min-cut/max-flow algorithms for energy minimization in vision", IEEE TPAMI, 2004.

[2] Philipp Krähenbühl and Vladlen Koltun, "Efficient inference in fully connected crfs with gaussian edge potentials", in NIPS, 2011.

[3] Kamnitsas et al in "Efficient multi-scale 3D CNN with fully connected CRF for accurate brain lesion segmentation", Medical Image Analysis, 2017.

maxflow densecrf1 densecrf2

Dependency

This repository depends on the following packages: Maxflow, DenceCRF and 3D Dense CRF

Installation

  1. Install by: pip install SimpleCRF

  2. Alternatively, you can compile the source files by the following two steps:

python setup.py build
python setup.py install

Examples

Some demos of using this package are:

  • examples/demo_maxflow.py: using maxflow for automatic and interactive segmentation of 2D and 3D images.

  • examples/demo_densecrf.py: using dense CRF for 2D gray scale and RGB image segmentation.

  • examples/demo_densecrf3d.py: using 3D dense CRF for 3D multi-modal image segmentation.

Modules

  1. maxflow has four functions as follows. Note that the current version only supports binary segmentation.
  • maxflow.maxflow2d() for 2D automatic segmentation.

  • maxflow.interactive_maxflow2d() for 2D interactive segmentation.

  • maxflow.maxflow3d() for 3D automatic segmentation.

  • maxflow.interactive_maxflow3d() for 3D interactive segmentation.

  1. denseCRF has the following function. It can deal with multi-class segmentation, and only supports RGB images.
  • denseCRF.densecrf() for 2D automatic segmentation.
  1. denseCRF3D has the following function. It can deal with multi-class segmentation. The input channel number can be 1-5.
  • denseCRF3D.densecrf3d() for 3D automatic segmentation.

More Repositories

1

SSL4MIS

Semi Supervised Learning for Medical Image Segmentation, a collection of literature reviews and code implementations.
Python
2,125
star
2

PyMIC

Python
334
star
3

DTC

Semi-supervised Medical Image Segmentation through Dual-task Consistency
Python
282
star
4

WSL4MIS

Scribbles or Points-based weakly-supervised learning for medical image segmentation, a strong baseline, and tutorial for research and application.
Python
197
star
5

CA-Net

Code for Comprehensive Attention Convolutional Neural Networks for Explainable Medical Image Segmentation.
Python
165
star
6

WORD

[MedIA2022]WORD: A large scale dataset, benchmark and clinical applicable study for abdominal organ segmentation from CT image
Python
140
star
7

MIDeepSeg

[MedIA2021]MIDeepSeg: Minimally Interactive Segmentation of Unseen Objects from Medical Images Using Deep Learning
Python
120
star
8

DAG4MIA

Domain Adaptation and Generalization for Medical Image Analysis
Python
104
star
9

COPLE-Net

COVID-19 Pneumonia Lesion segmentation network
Python
87
star
10

ACELoss

Implementations of "Learning Euler's Elastica Model for Medical Image Segmentation"
Python
69
star
11

Paper-Reading-Group

List shared papers in our group
62
star
12

UGIR

Uncertainty-Guided Interactive Refinement for Segmentation
Python
56
star
13

SCPM-Net

[MICCAI2020]CPM-Net: A 3D Center-Points Matching Network for Pulmonary Nodule Detection in CT Scans
Python
54
star
14

CDMA

offical code for: Semi-supervised Pathological Image Segmentation via Cross Distillation of Multiple Attentions. MICCAI 2023.
Python
47
star
15

PyMIC_examples

examples of using PyMIC for medical image computing with deep learning
Python
29
star
16

SegRap2023

[SegRap2023]A challenge about organ-at-risk and gross-tumor-volume segmentation in adaptive radiotherapy hosted on MICCAI2023.
Python
23
star
17

UPL-SFDA

Python
21
star
18

SepNet

Code for Automatic Segmentation of Organs-at-Risk from Head-and-Neck CT using Separable Convolutional Neural Network with Hard-Region-Weighted Loss.
Python
20
star
19

LCOVNet-and-KD

Python
17
star
20

MyoPS2020

Python
16
star
21

PA-Seg

PA-Seg: Learning from Point Annotations for 3D Medical Image Segmentation using Contextual Regularization and Cross Knowledge Distillation
Python
14
star
22

Head-Neck-GTV

Python
14
star
23

FPL-plus

FPL+: Filtered Pseudo Label-based Unsupervised Cross-Modality Adaptation for 3D Medical Image Segmentation
Python
13
star
24

PF-Net

Code for PF-Net (Pulmonary Fibrosis Segmentation Network)
Python
10
star
25

HAMIL

Python
9
star
26

DCA-Net

Python
6
star
27

RPR-Loc

Python
5
star
28

CFENet

Code for Enhancement of High- and Low-Level Features with Improved Attention Method for Medical Image Segmentation
Jupyter Notebook
5
star
29

ABCs_2020

Python
1
star
30

IPLC

1
star