-
Notifications
You must be signed in to change notification settings - Fork 0
/
cells.sh
executable file
·65 lines (54 loc) · 907 Bytes
/
cells.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
## cells.sh
##
## Copyright (C) 2014 stk <stk@101337>
## Distributed under terms of the MIT license.
##
## Description:
##
## Cell segmentation assignment
##
## Usage:
##
## cells OPTIONS PARAMS
##
## Parameters:
##
## NA
##
## Options:
##
## -h, --help This help message
##
## Example:
##
## cells -h
##
# ----------------
# UTILITY FUNCTIONS
# ----------------
echoerr() {
echo "$@" 1>&2;
}
usage() {
[ "$*" ] && echoerr "$0: $*"
sed -n '/^##/,/^$/s/^## \{0,1\}//p' "$0" 1>&2
exit 2
}
# ----------------
# FUNCTIONS
# ----------------
# ----------------
# MAIN
# ----------------
# Options parsing
while [ $# -gt 0 ]; do
case $1 in
(-h|--help) usage 2>&1;;
(--) shift; break;;
(-*) usage "$1: unknown option";;
(*) break;;
esac
done
cd matlab
matlab -nodesktop -nosplash < <(echo "cellseg('tumor_microscopy_c.tif')";read)