pub mod api_error;
mod bulk_data;
mod common;
mod consistency;
pub mod dataset_api;
pub mod dataset_tree;
mod dicomdir;
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 registration;
#[cfg(test)]
mod registration_tests;
mod render;
mod scp;
mod secondary_capture;
mod spatial_registration;
#[cfg(test)]
mod spatial_registration_tests;
mod standard_json;
mod streaming_transcode;
#[cfg(test)]
mod test_support;
#[cfg(test)]
mod tests;
mod texture_export;
mod types;
mod volume;
mod volume_export;
#[cfg(test)]
mod volume_geometry_tests;
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,
};
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,
};
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_object_for_filter,
FilterRequest,
};
pub use histogram::{
compute_frame_histogram, compute_instance_histograms, FrameHistogram, HistogramOptions,
};
pub use io::{
can_encode_transfer_syntax, 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 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,
};
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,
write_dicom_video, BoundingBox, BoxLength, OverlaySummary, RenderFrameOutput,
RenderOutputFormat, RenderPipelineOptions,
};
pub use scp::{start_scp, DicomScp, ScpError, ScpHandlers, ScpOptions};
pub use secondary_capture::{write_reformatted_dicom_slice, SecondaryCaptureError, SliceGeometry};
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,
};
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,
};
pub use volume::{
build_volume, canonical_view_basis, reformat_plane, reformat_plane_values, resample_volume,
rotate_basis, Interpolation, PlaneParams, SlabProjection, Volume, VolumeError,
};
pub use volume_export::{generate_uid, write_nifti, write_nrrd, VolumeExportError, VolumeGeometry};
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,
};