File size: 883 Bytes
8d3311c | 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 | from __future__ import annotations
import argparse
def convert_rtstruct_to_mask(*args, **kwargs):
"""RTSTRUCT/SEG conversion hook for NSCLC-Radiomics.
The exact ROI names and frame-of-reference handling need the downloaded TCIA
files. Keep this as a hard error instead of silently producing wrong masks.
"""
raise NotImplementedError(
"RTSTRUCT/SEG conversion requires local NSCLC-Radiomics files. "
"Use this hook after downloading data and confirming ROI names."
)
def main() -> None:
parser = argparse.ArgumentParser(description="Placeholder RTSTRUCT to mask converter.")
parser.add_argument("--rtstruct", required=True)
parser.add_argument("--reference-image", required=True)
parser.add_argument("--out", required=True)
parser.parse_args()
convert_rtstruct_to_mask()
if __name__ == "__main__":
main()
|