You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
3
3
4
-
[1] Yuri Boykov and Vladimir Kolmogorov, "An experimental comparison of min-cut/max-flow algorithms for energy minimization in vision", in IEEE TPAMI, 2004.
5
-
6
-
Pushmeet Kohli and Philip H.S. Torr. "Efficiently solving dynamic markov random fields using graph cuts", ICCV, 2005
4
+
[1] Yuri Boykov and Vladimir Kolmogorov, "An experimental comparison of min-cut/max-flow algorithms for energy minimization in vision", IEEE TPAMI, 2004.
7
5
8
6
[2] Philipp Krähenbühl and Vladlen Koltun, "Efficient inference in fully connected crfs with gaussian edge potentials", in NIPS, 2011.
9
7
10
-
[3] Kamnitsas et al. "Multi-scale 3D convolutional neural networks for lesion segmentation in brain MRI", in Proceeding of ISLES challenge, MICCAI, 2015.
8
+
[3] Kamnitsas et al in "Efficient multi-scale 3D CNN with fully connected CRF for accurate brain lesion segmentation", Medical Image Analysis, 2017.
11
9
12
10

13
11

14
12

15
13
16
-
# Dependency
14
+
###Dependency
17
15
This repository depends on the following packages:
18
16
19
17
* Maxflow https://vision.cs.uwaterloo.ca/code/
@@ -22,7 +20,16 @@ This repository depends on the following packages:
22
20
23
21
* 3D Dense CRF https://github.com/deepmedic/dense3dCrf
24
22
25
-
# Examples
23
+
### Installation
24
+
1. Install with pip: [`pip install SimpleCRF`][https://github.com/taigw/SimpleCRF]
25
+
26
+
2. Alternatively, you can compile the source files by the following two steps:
27
+
```bash
28
+
python setup.py build
29
+
python setup.py install
30
+
```
31
+
32
+
### Examples
26
33
Some demos of using this package are:
27
34
28
35
*`examples/demo_maxflow.py`: using maxflow for automatic and interactive segmentation of 2D and 3D images.
@@ -31,22 +38,24 @@ Some demos of using this package are:
31
38
32
39
*`examples/demo_densecrf3d.py`: using 3D dense CRF for 3D multi-modal image segmentation.
33
40
34
-
# Modules
35
-
1, `maxflow` has four functions as follows. Note that the current version only supports binary segmentation.
41
+
### Modules
42
+
1.`maxflow` has four functions as follows. Note that the current version only supports binary segmentation.
43
+
44
+
*`maxflow.maxflow2d()` for 2D automatic segmentation.
45
+
46
+
*`maxflow.interactive_maxflow2d()` for 2D interactive segmentation.
36
47
37
-
* maxflow.maxflow2d() for 2D automatic segmentation.
48
+
*`maxflow.maxflow3d()` for 3D automatic segmentation.
38
49
39
-
* maxflow.interactive_maxflow2d() for 2D interactive segmentation.
50
+
*`maxflow.interactive_maxflow3d()` for 3D interactive segmentation.
40
51
41
-
* maxflow.maxflow3d() for 3D automatic segmentation.
52
+
2.`denseCRF` has the following function. It can deal with multi-class segmentation, and only supports RGB images.
42
53
43
-
*maxflow.interactive_maxflow3d() for 3D interactive segmentation.
54
+
*`denseCRF.densecrf()` for 2D automatic segmentation.
44
55
45
-
2, `denseCRF` has the following function. It can deal with multi-class segmentation, and only supports RGB images.
56
+
3.`denseCRF3D` has the following function. It can deal with multi-class segmentation. The input channel number can be 1-5.
46
57
47
-
*denseCRF.densecrf() for 2D automatic segmentation.
58
+
*`denseCRF3D.densecrf3d()` for 3D automatic segmentation.
48
59
49
-
2, `denseCRF3D` has the following function. It can deal with multi-class segmentation, and the input channel number can be 1-5.
50
60
51
-
* denseCRF3D.densecrf3d() for 3D automatic segmentation.
0 commit comments