forked from mjirik/imcut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
72 lines (52 loc) · 2.01 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Installation Instructions
-------------------------
Installing requires you to have installed:
* numpy (http://www.numpy.org)
* scipy (http://scipy.org)
* scikit-learn (http://scikit-learn.org)
* Cython - C-extension for Python (http://cython.org)
* pyqt - Python bindings for Qt application framework
(http://www.riverbankcomputing.com/software/pyqt)
* git - distributed version control system (http://git-scm.com)
* pygco - Graphcuts for Python (https://github.com/amueller/gco_python)
* pydicom - package for working with DICOM files
(http://code.google.com/p/pydicom)
On Linux, ask the package manager of your distribution.
On Windows, packages numpy, scipy, scikit-learn, Cython, pydicom are part of
Python(x,y) distribution (http://code.google.com/p/pythonxy).
Pygco has to be installed manually, in gitbash write:
Linux:
git clone https://github.com/amueller/gco_python.git
cd gco_python
make
python setup.py install
Windows:
git clone https://github.com/amueller/gco_python.git
cd gco_python
mkdir gco_src && cd gco_src
curl -O http://vision.csd.uwo.ca/code/gco-v3.0.zip
unzip gco-v3.0.zip
cd ..
curl -O https://raw2.github.com/mjirik/pyseg_base/master/distr/gco_python.pyx.patch
patch gco_python.pyx < gco_python.pyx.patch
python setup.py build_ext -i --compiler=mingw32
python.exe setup.py build --compiler=mingw32
python.exe setup.py install --skip-build
Mac:
git clone https://github.com/amueller/gco_python.git
cd gco_python
mkdir gco_src
cd gco_src
curl -O http://vision.csd.uwo.ca/code/gco-v3.0.zip
unzip gco-v3.0.zip
curl -O https://raw.github.com/mjirik/pyseg_base/master/distr/energy.patch
patch energy.h < energy.patch
cd ..
sudo python setup.py install
Install PYSEG_BASE:
pip install imcut
or:
git clone https://github.com/mjirik/pyseg_base.git
Sample DICOM data can be found at:
* http://www.mathworks.com/matlabcentral/fileexchange/2762-dicom-example-files?download=true
* http://www.osirix-viewer.com/datasets/