• Stars
    star
    164
  • Rank 230,032 (Top 5 %)
  • Language
    C++
  • License
    BSD 3-Clause "New...
  • Created about 7 years ago
  • Updated about 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,154
star
2

PyMIC

Python
343
star
3

DTC

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

WSL4MIS

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

CA-Net

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

WORD

[MedIA2022]WORD: A large scale dataset, benchmark and clinical applicable study for abdominal organ segmentation from CT image
Python
146
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
112
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
70
star
11

Paper-Reading-Group

List shared papers in our group
64
star
12

UGIR

Uncertainty-Guided Interactive Refinement for Segmentation
Python
58
star
13

SCPM-Net

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

CDMA

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

PyMIC_examples

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

LCOVNet-and-KD

Python
24
star
17

SegRap2023

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

UPL-SFDA

Python
22
star
19

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
21
star
20

FPL-plus

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

PA-Seg

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

MyoPS2020

Python
15
star
23

Head-Neck-GTV

Python
15
star
24

HAMIL

Python
10
star
25

PF-Net

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

DCA-Net

Python
8
star
27

DMSPS

Dynamically Mixed Soft Pseudo-label Supervision for Scribble-Supervised Medical Image Segmentation
Python
7
star
28

UGTST

6
star
29

RPR-Loc

Python
5
star
30

CFENet

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

IPLC

Python
3
star
32

ABCs_2020

Python
2
star
33

UM-CAM

Python
1
star