Commit 3d33fb27 authored by Sean Fitzgibbon's avatar Sean Fitzgibbon
Browse files

Added image resolution as a CL argument

parent 9022ccea
......@@ -20,7 +20,6 @@
"file": "",
"storage": "mem",
"dtype": "f4",
"resolution": 0.0064,
"mask": {
"file": null,
"normalise": true,
......@@ -38,7 +37,6 @@
"file": "",
"storage": "mem",
"dtype": "f4",
"resolution": 0.0064,
"mask": {
"file": null,
"normalise": true,
......
......@@ -792,7 +792,7 @@ def pad(timg, **kwargs):
def register_slide_to_slide(moving, fixed, out, config):
def register_slide_to_slide(moving, moving_res, fixed, fixed_res, out, config):
"""
Register 2D-slide to 2D-slide using TIRL.
......@@ -806,7 +806,9 @@ def register_slide_to_slide(moving, fixed, out, config):
f"does not exist: {config}")
config["moving"]["file"] = moving
config["moving"]["resolution"] = moving_res
config["fixed"]["file"] = fixed
config["fixed"]["resolution"] = fixed_res
config["general"]["outputdir"] = out
config["general"]["logfile"] = f'{out}/logfile.log'
config["general"]["paramlogfile"] = f'{out}/paramlog.log'
......
......@@ -16,9 +16,13 @@ def add_slide_cli(subparsers):
)
parser.add_argument("moving", metavar="<moving>",
help="Moving slide", type=str)
help="Moving slide image", type=str)
parser.add_argument("moving_res", metavar="<moving-resolution>",
help="Moving image resolution (mm)", type=float)
parser.add_argument("fixed", metavar="<fixed>",
help="Fixed slide", type=str)
help="Fixed slide image", type=str)
parser.add_argument("fixed_res", metavar="<fixed-resolution>",
help="Fixed image resolution (mm)", type=float)
parser.add_argument("--out", metavar="<dir>",
help="Output directory", default='./slider.reg', type=str,
required=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment