This small package provides some helper functions based on the `inspect` module to translate functions that use `sitk.Image` in the signature in to functions that can be run from the command line. Function arguments of type `sitk.Image` are translated to `pathlib.Path` arguments. If the return type is `sitk.Image` a keyword argument is added to specify an output file, so the returned image can be written to file.
Example signature translation:
Python
def median_filter(input: sitk.Image, radius: int) -> sitk.Image:
pass
is converted by `sitk_cli.make_cli` to:
Python
def median_filter(input: pathlib.Path, radius: int, output: pathlib.Path = None):
pass