-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLI Interface, argparse moved to utils
Former-commit-id: 6bf5f4f
- Loading branch information
Showing
4 changed files
with
40 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
from .arrayutils import * | ||
from .crawl import * | ||
from .dicomutils import * | ||
from .args import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from argparse import ArgumentParser | ||
|
||
def parser(): | ||
parser = ArgumentParser("imgtools Automatic Processing Pipeline.") | ||
|
||
#arguments | ||
parser.add_argument("input_directory", type=str, | ||
help="Path to top-level directory of dataset.") | ||
|
||
parser.add_argument("output_directory", type=str, | ||
help="Path to output directory to save processed images.") | ||
|
||
parser.add_argument("--modalities", type=str, default="CT", | ||
help="List of desired modalities. Type as string for ex: RTSTRUCT,CT,RTDOSE") | ||
|
||
parser.add_argument("--visualize", type=bool, default=False, | ||
help="Whether to visualize the data graph") | ||
|
||
parser.add_argument("--spacing", nargs=3, type=float, default=(1., 1., 0.), | ||
help="The resampled voxel spacing in (x, y, z) directions.") | ||
|
||
parser.add_argument("--n_jobs", type=int, default=-1, | ||
help="The number of parallel processes to use.") | ||
|
||
parser.add_argument("--show_progress", action="store_true", | ||
help="Whether to print progress to standard output.") | ||
|
||
return parser.parse_known_args()[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters