-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathINSTALL.txt
35 lines (26 loc) · 928 Bytes
/
INSTALL.txt
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
* Install Anaconda (Python3)
* Install pydicom
pip install pydicom
* Install OpenCV 3.2.0 or above
Download OpenCV source files
cd ~/opencvSource/opencv-3.2.0/
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/opt/opencv \
-D INSTALL_PYTHON_EXAMPLES=OFF \
-D INSTALL_C_EXAMPLES=ON \
-D PYTHON_EXECUTABLE=~/anaconda3/bin/python \
-D BUILD_EXAMPLES=ON ..
make -j4
make install
// OpenCV will be installed to the path specified in CMAKE_INSTALL_PREFIX
* Compile GrabCut3d
// Edit the Makefile located in /renal-segmentation/CppSource/GrabCut3d
// If you specify a different path in CMAKE_INSTALL_PREFIX update the following variable.
opencv_lib_path = opt/opencv/lib
* Run the program on uncompressed dicom files.
Usage:
python renalSegment.py <input_dir> <output_dir>
Example Usage:
python renalSegment.py /data/DicomIn /data/DicomOut