Batch#
zrad.batch contains save-to-disk workflows for processing many case
folders with one configuration. Use these classes when you want the same
operation that the GUI performs over a cohort of patients.
The batch API currently includes:
BatchPreprocessorfor DICOM/NIfTI preprocessing and mask export.BatchFilterfor applying one image filter to every selected case.BatchRadiomicsExtractorfor writing one radiomics CSV from many cases.
The lower-level zrad.preprocessing, zrad.filtering, and
zrad.radiomics modules remain the single-image or single-ROI APIs.
All batch workflows return BatchResult:
result = batch.run()
print(result.processed_count, result.skipped_count, result.failed_count)
for case in result.errors:
print(case.case_name, case.error)
|
Run one image filter over many case folders and write NIfTI outputs. |
|
Per-case result returned by |
|
Run preprocessing over many case folders and write NIfTI outputs. |
|
Per-case result returned by |
|
Extract radiomics features for many case folders and write one CSV. |
|
Per-case result returned by |
|
Summary returned by batch workflows. |