Expand description
DICOM whole-slide export for wsi-rs datasets.
The crate facade intentionally stays small: public types and functions are re-exported from focused internal modules, while implementation details live behind crate-private module boundaries.
Optional cuda and metal features enable acceleration plumbing where the
corresponding platform runtime is available. The
bench-internals feature exposes unstable helpers for the repository’s
benchmark harness only.
Modules§
- prelude
- Common imports for applications using
wsi-dicom.
Structs§
- Default
Transfer Syntax Request - Request for source-aware default transfer syntax selection.
- Dicom
Metadata - Metadata accepted by the DICOM writer after strict JSON or FHIR mapping.
- Doctor
Options - Options for checking validator tool availability.
- Doctor
Report - Validator environment report.
- Doctor
Tool - Status for one validator tool check.
- Encoded
Frame - Finished compressed frame bytes ready for DICOM encapsulated Pixel Data insertion.
- Export
- Builder for exporting one wsi-rs-readable whole-slide image to DICOM VL WSI.
- Export
Metrics - Export, routing, encode, validation, and writer counters.
- Export
Options - Options controlling how a source WSI should be converted into DICOM.
- Export
Report - Top-level report returned by a DICOM export.
- Export
Request - A validated request to export one vendor WSI into one DICOM output directory.
- Frame
Samples - Borrowed interleaved samples and geometry for DICOM J2K/HTJ2K frame encoding.
- GpuEncode
Metrics - GPU JPEG 2000 encode configuration, counters, and stage timings.
- Instance
Report - Report for one generated DICOM instance.
- J2kFrame
Encode Request - Request to encode one already-composed tile into DICOM-ready J2K/HTJ2K frame bytes.
- Jpeg
Direct Htj2k Metrics - Direct JPEG-to-HTJ2K coefficient-transcode counters and timings.
- Route
Corpus Coverage Failure - Failure encountered while profiling one source in a corpus.
- Route
Corpus Coverage Report - Route coverage report for a source corpus.
- Route
Counters - Route, pixel-profile, and non-GPU-specific frame counters.
- Route
Coverage Report - Route coverage report across source levels.
- Route
Coverage Request - Request to sample route coverage without writing DICOM.
- Route
Profile Report - Route profiling report for one source level.
- Route
Profile Request - Request to profile frame routing for one level without writing DICOM.
- Self
Test Options - Options for generating and validating a deterministic tiny DICOM export.
- Self
Test Report - Report returned by the deterministic DICOM self-test.
- Validation
Check - Result of one external validator or pixel decode check.
- Validation
Options - Options for validating generated DICOM files with external tools.
- Validation
Report - Report from validating one file or directory of DICOM files.
- Write
Timings - Processing and writer timing metrics.
Enums§
- Codec
Validation - Runtime validation policy for newly encoded compressed frame bytes.
- Doctor
Status - Availability status for a validator tool.
- Encode
Backend Preference - Runtime preference for JPEG 2000 Lossless encode backends.
- Error
- Error type returned by public
wsi-dicomAPIs. - Export
Preset - User-facing export presets for common conversion goals.
- IccProfile
Policy - Policy for DICOM Optical Path ICC profile handling when source color metadata is unavailable.
- IccProfile
Source - Provenance for the ICC profile written to a DICOM instance.
- Jpeg
Direct Htj2k Profile - Direct JPEG-to-HTJ2K coefficient path used for HTJ2K export from JPEG tiles.
- Metadata
Source - Source of metadata for the DICOM export request.
- Route
Coverage Target - Target for route coverage profiling.
- Route
Progress Sink - Progress reporting destination for route coverage work.
- Transfer
Syntax - DICOM transfer syntax choices for exported VL Whole Slide Microscopy files.
- UidPolicy
- Policy for identifiers generated when the caller does not supply them.
- Validation
Status - Status for one DICOM validation check.
Constants§
- METADATA_
JSON_ MAX_ BYTES - Maximum accepted metadata JSON file size.
Functions§
- default_
transfer_ syntax_ for_ source - Pick the default transfer syntax for a source.
- doctor_
dicom_ environment - Check local external DICOM validator availability.
- encode_
dicom_ j2k_ frame - Encode one composed tile into finished compressed DICOM frame bytes.
- export_
dicom - Export a wsi-rs-readable WSI into DICOM VL Whole Slide Microscopy files.
- profile_
dicom_ route_ corpus_ coverage - Profile route coverage for every WSI-like file under a source root.
- profile_
dicom_ route_ coverage - Profile route coverage across exportable slide planes without writing DICOM.
- profile_
dicom_ routes - Profile the route selection and encode path for a bounded number of frames.
- run_
dicom_ self_ test - Generate a tiny deterministic source DICOM, export it, and validate the output.
- validate_
dicom_ path - Validate a DICOM file or recursively discovered DICOM directory.