render_mpr
Reconstruct axial, coronal, or sagittal views from a DICOM slice stack and render them as PNG images, rejecting series with invalid geometry.
Instructions
Reconstruct an axial, coronal or sagittal view from a stack of slices and render it as a PNG.
Refuses series that fail check_geometry (missing slices, mixed orientations, and so on).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Slice index in the reconstructed plane; default is the middle. | |
| paths | Yes | Local DICOM files or directories inside the allowed paths. | |
| plane | No | Plane to reconstruct. | coronal |
| window | No | Display window: auto (file window or percentiles), minmax, or a CT preset: lung, mediastinum, soft_tissue, abdomen, liver, bone, brain, subdural, stroke. | auto |
| max_size | No | Longest edge of the PNG in pixels. | |
| series_uid | No | Series to use when the paths contain several. | |
| window_width | No | Explicit window width. | |
| window_center | No | Explicit window center. |