Skip to content

Adding a class to convert HU units to density

Ronan Lefol requested to merge hudensity into develop

This MR aims to add a class which permits (easy) conversion from an array of HU values to density values.

The lookup table is user dependent and resembles that found in tests/data/CTUtils/sample_data.csv This format is generally what is provided by manufacturers

Noteworthy points:

  • Currently, the format is only CSV or direct Dataframe as input
  • The ConvertHUToDensity class is rather bare-bones and could afford to be extended

TODO:

  • Documentation
  • Further tests with the improper file format(?)
  • Implementation of other readers (space/tab-delimited) (unsure if should be blocking merge)

Merge request reports

Loading