render_image
Convert a local DICOM image frame to a viewable PNG with modality rescale, display windowing, and pixel-aspect correction; also returns edge orientation and input fingerprint.
Instructions
Render one frame of a local DICOM image as a PNG you can look at.
Applies the modality rescale (e.g. HU) and a display window, corrects non-square pixels, and reports which patient direction each image edge faces. Also returns the input fingerprint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a local DICOM file inside the allowed paths (e.g. from retrieve). | |
| frame | No | 0-based frame index for multi-frame images. | |
| 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. | |
| window_width | No | Explicit window width (overrides window). | |
| window_center | No | Explicit window center (overrides window). |