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§
- Annotation
Diagnostic Report - Structured diagnostic emitted while normalizing profiled annotation content.
- Annotation
Export Report - Verified annotation sidecars produced for one WSI conversion.
- Annotation
Instance Report - One verified DICOM annotation object created by the combined conversion.
- Corpus
Route Coverage Request - Request to sample route coverage across a bounded source corpus.
- 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.
- Export
Workflow Error - Structured error preserving the application stage and underlying library error.
- Export
Workflow Report - Combined machine report from the shared application workflow.
- Export
Workflow Request - Frontend-independent request for export, annotations, validation, and reporting.
- Frame
Samples - Borrowed interleaved samples and geometry for DICOM J2K/HTJ2K frame encoding.
- GpuEncode
Metrics - GPU JPEG 2000 encode configuration, counters, and stage timings.
- IccCalibration
Registry - Portable scanner-to-profile registry with verified profile bytes.
- IccProfile
- Verified DICOM input-device ICC profile retained entirely in memory.
- 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.
- QuPath
Annotation Options - Inputs and semantic choices for converting one QuPath GeoJSON export.
- 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.
- Scanner
Identity - Exact scanner identity used for governed calibration matching.
- Self
Test Options - Options for generating and validating a deterministic tiny DICOM export.
- Self
Test Report - Report returned by the deterministic DICOM self-test.
- Slide
Route Coverage Request - Request to sample route coverage for exactly one source slide.
- Source
Pixel Spacing Mm - Explicit level-zero source pixel spacing in DICOM row/column order, in millimeters.
- Specimen
Identifier Issuer - Issuer that gives a specimen identifier its organizational scope.
- Validation
Check - Result of one external validator or pixel decode check.
- Validation
Execution - Retained process facts for an external validation command.
- 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§
- Annotation
Coordinate Space - Coordinate convention used by a QuPath GeoJSON annotation export.
- Annotation
Target - DICOM derived-object representation requested for mapped QuPath content.
- Codec
Validation - Runtime validation policy for newly encoded compressed frame bytes.
- Color
Management - Explicit color-management configuration required for every export.
- 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. - Execution
Failure - An external check that could not produce a usable conformance verdict.
- Export
Preset - User-facing export presets for common conversion goals.
- Export
Workflow Progress Event - Coarse progress event emitted at application workflow boundaries.
- Export
Workflow Stage - Stage of the application workflow responsible for an outcome or failure.
- IccConflict
Decision - Decision applied between a configured and source ICC profile.
- IccConflict
Policy - Resolution policy when a configured ICC profile differs from a source profile.
- 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
Input - User-facing selection of exactly one metadata source for an export workflow.
- 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.
- Universal
Entity IdType - DICOM/HL7 universal entity identifier type.
- Validation
Profile - Intrinsic validation contract; general checks remain compatible with legacy catalogs.
- Validation
Status - Status for one DICOM validation check.
Constants§
- ICC_
CALIBRATION_ REGISTRY_ MAX_ BYTES - Maximum accepted calibration registry JSON size (1 MiB).
- ICC_
PROFILE_ MAX_ BYTES - Maximum accepted ICC profile size (16 MiB).
- METADATA_
JSON_ MAX_ BYTES - Maximum accepted metadata JSON file size.
Traits§
- Export
Workflow Progress - Thread-safe receiver for coarse application workflow progress.
Functions§
- create_
icc_ calibration_ bundle - Package an existing vendor- or target-generated ICC profile into a portable bundle.
- 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.
- export_
qupath_ annotations - Convert profiled QuPath GeoJSON into verified sidecars for an existing WSI export report.
- profile_
corpus_ route_ coverage - Profile route coverage for a corpus using a target-safe request type.
- 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.
- profile_
slide_ route_ coverage - Profile route coverage for one source using a target-safe request type.
- run_
dicom_ self_ test - Generate a tiny deterministic source DICOM, export it, and validate the output.
- run_
export_ workflow - Execute the frontend-independent export workflow.
- validate_
dicom_ path - Validate a DICOM file or recursively discovered DICOM directory.