temp / CT /lung /src /preprocessing /convert_rtstruct.py
Cccccz's picture
Add files using upload-large-folder tool
8d3311c verified
Raw
History Blame Contribute Delete
883 Bytes
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()