-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathilastik.py
executable file
·43 lines (36 loc) · 1.64 KB
/
ilastik.py
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
#!/usr/bin/env python
###############################################################################
# ilastik: interactive learning and segmentation toolkit
#
# Copyright (C) 2011-2014, the ilastik developers
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# In addition, as a special exception, the copyright holders of
# ilastik give you permission to combine ilastik with applets,
# workflows and plugins which are not covered under the GNU
# General Public License.
#
# See the LICENSE file for details. License information is also available
# on the ilastik web site at:
# http://ilastik.org/license.html
###############################################################################
import ilastik_main
# Special command-line control over default tmp dir
import ilastik.monkey_patches
ilastik.monkey_patches.extend_arg_parser(ilastik_main.parser)
def main():
parsed_args, workflow_cmdline_args = ilastik_main.parser.parse_known_args()
# DEBUG EXAMPLES
#parsed_args.project='/Users/bergs/MyProject.ilp'
#parsed_args.headless = True
ilastik_main.main(parsed_args, workflow_cmdline_args)
if __name__ == "__main__":
# Examples:
# python ilastik.py --headless --project=MyProject.ilp --output_format=hdf5 raw_input.h5/volumes/data
# python ilastik.py --playback_speed=2.0 --exit_on_failure --exit_on_success --debug --playback_script=my_recording.py
main()