Skip to content

Commit

Permalink
fix(tools): Add support for additional region data types and length v…
Browse files Browse the repository at this point in the history
…ariants
  • Loading branch information
simonbertoli committed Nov 27, 2024
1 parent 22050f1 commit e8632be
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/tools/src/utilities/getCalibratedUnits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@ const PIXEL_UNITS = 'px';

const SUPPORTED_REGION_DATA_TYPES = [
1, // Tissue
2, // Color Flow
3, // PW Spectral Doppler
4, // CW Spectral Doppler
];

const SUPPORTED_LENGTH_VARIANT = [
'3,3', // x: cm & y:cm
"3,3", // x: cm & y:cm
"4,7", // x: seconds & y : cm/sec
];

const SUPPORTED_PROBE_VARIANT = [
'4,3', // x: seconds & y : cm
"4,3", // x: seconds & y : cm
"4,7", // x: seconds & y : cm/sec
];

const UNIT_MAPPING = {
Expand Down

0 comments on commit e8632be

Please sign in to comment.