All files / tools/src/types CalculatorTypes.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38                                                                           
import type { Types } from '@cornerstonejs/core';
 
type Statistics = {
  name: string;
  label?: string;
  value: number | number[];
  unit: null | string;
  pointIJK?: Types.Point3;
  pointLPS?: Types.Point3;
};
 
type NamedStatistics = {
  mean: Statistics & { name: 'mean' };
  max: Statistics & { name: 'max' };
  min: Statistics & { name: 'min' };
  stdDev: Statistics & { name: 'stdDev' };
  count: Statistics & { name: 'count' };
  area?: Statistics & { name: 'area' };
  volume?: Statistics & { name: 'volume' };
  pointsInShape?: Types.IPointsManager<Types.Point3>;
  median?: Statistics & { name: 'median' };
  skewness?: Statistics & { name: 'skewness' };
  kurtosis?: Statistics & { name: 'kurtosis' };
  voxelCount?: Statistics & { name: 'count' };
  lesionGlycolysis?: Statistics & { name: 'lesionGlycolysis' };
  maxLPS?: Statistics & { name: 'maxLPS' };
  minLPS?: Statistics & { name: 'minLPS' };
  center?: Statistics & { name: 'center' };
  /**
   * A set of stats callback arguments containing maximum values.
   * This can be used to test peak intensities in the areas.
   */
  maxIJKs?: Array<{ value: number; pointIJK: Types.Point3 }>;
  array: Statistics[];
};
 
export type { Statistics, NamedStatistics };