Skip to content

Add finite float conversion methods in DICOM value types and use them in pixel data object attribute retrieval - #831

Open
Enet4 wants to merge 5 commits into
masterfrom
imp/core/finite-floats
Open

Enet4 wants to merge 5 commits into
masterfrom
imp/core/finite-floats

Conversation

@Enet4

@Enet4 Enet4 commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • [core] Reorganize PrimitiveValue methods into separate modules, so that the primitive module file isn't huge
  • [core] add PrimitiveValue methods for conversion to finite float: to_finite_float32, to_finite_float64, to_multi_finite_float32, to_multi_finite_float64.
  • [core] Extend these finite float conversion methods to DicomValue and DataElement
  • [object] Add to_finite_f32 and to_finite_f64 to DicomAttribute trait
  • [pixeldata] Use finite float conversion methods in pixel data object attribute retrieval, which prevents bad values in key attributes in the LUT processing steps from poisoning the pixel data samples

@Enet4 Enet4 added enhancement A-lib Area: library C-object Crate: dicom-object C-core Crate: dicom-core C-pixeldata Crate: dicom-pixeldata labels Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lib Area: library C-core Crate: dicom-core C-object Crate: dicom-object C-pixeldata Crate: dicom-pixeldata enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant