-
Notifications
You must be signed in to change notification settings - Fork 32
/
run_deep_brain_seg.sh
42 lines (34 loc) · 1.08 KB
/
run_deep_brain_seg.sh
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
#!/bin/bash
start=$(date +%s.%N)
# clean up
rm -r /OUTPUTS/*
# preprocessing for spleen
/extra/run_Deep_brain_preprocessing
dur=$(echo "$(date +%s.%N) - $start" | bc)
printf "*******preprocessing time: %.6f seconds\n" $dur
start=$(date +%s.%N)
# generate deep segmentation
bash /OUTPUTS/run_all_batches.sh
dur=$(echo "$(date +%s.%N) - $start" | bc)
printf "*******segmentation time: %.6f seconds\n" $dur
start=$(date +%s.%N)
#postprocessing for spleen
/extra/run_Deep_brain_postprocessing
dur=$(echo "$(date +%s.%N) - $start" | bc)
printf "*******postprocessing time: %.6f seconds\n" $dur
start=$(date +%s.%N)
#generate pdf
/extra/generate_light_PDF
dur=$(echo "$(date +%s.%N) - $start" | bc)
printf "*******generating pdf time: %.6f seconds\n" $dur
start=$(date +%s.%N)
#generate txt file (ROI vs. volume)
/extra/generate_volume_stat
dur=$(echo "$(date +%s.%N) - $start" | bc)
printf "*******generating text file time: %.6f seconds\n" $dur
#clean up
# rm -r /OUTPUTS/Data_2D
# rm -r /OUTPUTS/DeepSegResults
# rm -r /OUTPUTS/dicom2nifti
# rm -r /OUTPUTS/FinalSeg
# rm -r /OUTPUTS/FinalResult/tmp