dcmnorm 0.23.1

Fast DICOM toolkit: parse, render, transcode, reformat, de-identify and network (DIMSE) DICOM medical images.
Documentation
pub mod api_error;
mod bulk_data;
mod common;
mod consistency;
pub mod dataset_api;
pub mod dataset_tree;
#[cfg(not(target_arch = "wasm32"))]
mod dicomdir;
#[cfg(not(target_arch = "wasm32"))]
mod dimse;
mod filter;
mod flat_json;
mod histogram;
mod io;
mod jpeg2000_openjpeg;
mod jpeg_ls;
mod jpeg_xl;
mod json;
mod kakadu;
mod mpeg;
mod region;
#[cfg(all(test, not(target_arch = "wasm32")))]
mod region_tests;
#[cfg(not(target_arch = "wasm32"))]
mod registration;
#[cfg(all(test, not(target_arch = "wasm32")))]
mod registration_tests;
mod render;
#[cfg(not(target_arch = "wasm32"))]
mod scp;
#[cfg(not(target_arch = "wasm32"))]
mod secondary_capture;
#[cfg(not(target_arch = "wasm32"))]
mod spatial_registration;
#[cfg(all(test, not(target_arch = "wasm32")))]
mod spatial_registration_tests;
mod standard_json;
#[cfg(not(target_arch = "wasm32"))]
mod streaming_transcode;
#[cfg(all(test, not(target_arch = "wasm32")))]
mod test_support;
#[cfg(all(test, not(target_arch = "wasm32")))]
mod tests;
#[cfg(not(target_arch = "wasm32"))]
mod texture_export;
mod types;
mod volume;
#[cfg(not(target_arch = "wasm32"))]
mod volume_export;
#[cfg(all(test, not(target_arch = "wasm32")))]
mod volume_geometry_tests;
mod volume_render;
#[cfg(all(test, not(target_arch = "wasm32")))]
mod volume_render_tests;
mod wsi;

pub use api_error::{catch_api_panic, ApiError, ApiErrorKind};
pub use consistency::{check_dicom_logic, ConsistencyFinding, ConsistencyReport, Severity};
pub use dataset_api::{
    dictionary_vr, document_to_dicom_json, document_to_file_object, keyword_for_tag,
    read_dataset_document, render_source_frame, source_to_dicom_json, tag_for_keyword,
    transcode_source, transcode_source_to_path, write_document, write_document_to_path,
    DatasetReadOptions, DicomJsonExportOptions, DicomSource, WriteDocumentOptions,
};
pub use dataset_tree::{
    decode_document, encode_document, BulkDataRef, BulkSource, DatasetDocument, DatasetTree,
    TreeElement, TreeValue,
};
#[cfg(not(target_arch = "wasm32"))]
pub use dicomdir::{
    build_dicomdir, collect_dicomdir_entries, directory_record_type_for_sop_class,
    file_id_from_relative_path, validate_file_id, validate_file_set_id, write_dicomdir,
    DicomdirEntry, DicomdirError, DicomdirOptions, DicomdirReport, DicomdirSynthesized,
    MEDIA_STORAGE_DIRECTORY_STORAGE,
};
#[cfg(not(target_arch = "wasm32"))]
pub use dimse::{
    echo_scu, find_scu, move_scu, store_scu, CancelMode, CancelSignal, DimseError, DimseLogger,
    EchoScuOptions, FindScuOptions, MoveScuOptions, MoveScuResult, QueryRetrieveLevel,
    StoreScuOptions, StoreScuResult,
};
pub use filter::{
    apply_filter_to_object, next_tag, parse_filter_requests, read_dcmnorm_bytes_for_filter,
    read_dcmnorm_object_for_filter, FilterRequest,
};
pub use histogram::{
    compute_frame_histogram, compute_instance_histograms, FrameHistogram, HistogramOptions,
};
pub use io::{
    can_encode_transfer_syntax, check_dicom_bytes, detect_jpeg2000_backend_from_search_path,
    jpeg2000_backend, jpeg2000_backend_name, jpeg2000_codec_summary, jpeg2000_engine_name_for,
    kakadu_ffi_enabled, list_transfer_syntax_support, probe_dicom_file_for_sop_class_uid,
    read_dicom_bytes, read_dicom_file, read_dicom_file_deferring_bulk_data,
    transcode_dcmnorm_object, transcode_dcmnorm_object_owned, transcode_dicom_bytes,
    transcode_dicom_file, video_engine_name_for, write_dataset_as_dicom_bytes,
    write_dataset_as_dicom_file, write_dicom_bytes, write_dicom_file, Jpeg2000Backend,
    JPEG2000_CODEC_ENV_FLAG, JPEG2000_DEBUG_ENV_FLAG,
};
pub use json::{
    dicom_file_to_json, read_dicom_json, read_dicom_json_full, read_dicom_json_full_with_source,
    read_dicom_json_with_options, read_dicom_json_with_source, write_dataset_as_dicom_json,
    write_dataset_as_dicom_json_full, write_dataset_as_dicom_json_with_options, write_dicom_json,
    write_dicom_json_full, write_dicom_json_full_with_source, write_dicom_json_with_options,
    write_dicom_json_with_source,
};
pub use region::{plane_params_for_region, Region};
#[cfg(not(target_arch = "wasm32"))]
pub use registration::{
    estimate_translation, euler_deg, mat_inverse, mat_mul, register_rigid, rigid_about,
    rotation_angle_deg, rotation_matrix, transform_point, translation_matrix, Initialization,
    LevelResult, MaskMode, Mat4, MetricChoice, MetricKind, RegistrationError, RegistrationOptions,
    RegistrationResult, StartResult, StopReason, TranslationEstimate, TranslationOptions,
};
#[cfg(not(target_arch = "wasm32"))]
pub use render::write_dicom_video;
pub use render::{
    read_dicom_file_for_frame, redact_dicom_pixels_to_transfer_syntax, render_all_dicom_frames,
    render_all_dicom_video_frames, render_dicom_frame, render_dicom_frame_pixels,
    render_dicom_frames, render_dicom_to_recompressed_object, try_extract_passthrough_jpeg_frame,
    BoundingBox, BoxLength, OverlaySummary, RenderFrameOutput, RenderOutputFormat,
    RenderPipelineOptions,
};
#[cfg(not(target_arch = "wasm32"))]
pub use scp::{start_scp, DicomScp, ScpError, ScpHandlers, ScpOptions};
#[cfg(not(target_arch = "wasm32"))]
pub use secondary_capture::{write_reformatted_dicom_slice, SecondaryCaptureError, SliceGeometry};
#[cfg(not(target_arch = "wasm32"))]
pub use spatial_registration::{
    build_spatial_registration, format_ds, is_spatial_registration_sop_class,
    read_spatial_registration, validate_spatial_registration, SpatialRegistrationError,
    DEFORMABLE_SPATIAL_REGISTRATION_SOP_CLASS_UID, SPATIAL_REGISTRATION_SOP_CLASS_UID,
};
#[cfg(not(target_arch = "wasm32"))]
pub use texture_export::{
    pack_dicom_frame_stack_texture, pack_dicom_frame_texture, pack_dicom_rgb_frame_stack_texture,
    pack_dicom_rgb_frame_texture, pack_frame_stack_texture, pack_frame_texture,
    pack_rgb_frame_stack_texture, pack_rgb_frame_texture, pack_volume_texture, quantize_samples,
    resample_frame_2d, resample_rgb_frame_2d, ContentKind, DecodedFrame, DecodedRgbFrame,
    PackedTexture, SampleFormat, TextureCompression, TextureExportError, TextureMeta,
};
pub use types::{
    BulkDataUriBuilder, BulkDataUriRequest, DicomIoError, DicomJsonBulkDataMode, DicomJsonError,
    DicomJsonFormat, DicomJsonKeyStyle, DicomJsonReadOptions, DicomJsonWriteOptions, ReadError,
    RenderError, TranscodeError, TransferSyntaxSupport, WithMetaError, WriteError,
};
#[cfg(not(target_arch = "wasm32"))]
pub use volume::build_volume;
pub use volume::{
    build_volume_from_bytes, build_volume_from_objects, can_build_volume_from_object,
    canonical_view_basis, reformat_plane, reformat_plane_pixels, reformat_plane_values,
    resample_volume, rotate_basis, Interpolation, PlaneParams, SlabProjection, Volume, VolumeError,
};
#[cfg(not(target_arch = "wasm32"))]
pub use volume_export::{generate_uid, write_nifti, write_nrrd, VolumeExportError, VolumeGeometry};
pub use volume_render::{
    orbit_basis, parse_on_off, render_volume, render_volume_pixels, render_volume_values,
    resolve_turntable_volume_render_params, resolve_volume_render_params,
    volume_render_preset_names, volume_render_view_basis, TransferFunction, TransferFunctionPoint,
    VolumeRenderError, VolumeRenderMode, VolumeRenderOptions, VolumeRenderParams,
    VolumeRenderPixels, MAX_VOLUME_RENDER_OUTPUT_PIXELS, MAX_VOLUME_RENDER_SAMPLES_PER_RAY,
    VOLUME_RENDER_PRESETS,
};
pub use wsi::{
    describe_wsi, is_whole_slide_object, render_wsi, WsiDimensionOrganization, WsiLevelInfo,
    WsiRenderOptions, WsiRenderOutput, DEFAULT_WSI_MAX_OUTPUT_PIXELS,
};
#[cfg(not(target_arch = "wasm32"))]
pub use wsi::{describe_wsi_files, is_whole_slide_file, render_wsi_files};
pub mod dicom_edit;
pub use dicom_edit::{
    parse_attribute_override, parse_tag_key, parse_tag_path, remove_attribute,
    remove_attribute_path, remove_private_tags_inplace, set_attribute, set_attribute_path,
    DicomPathSegment,
};