@cornerstonejs/adapters 1.20.0 → 1.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Convert handles to RTSS report containing the dcmjs dicom dataset.
3
+ *
4
+ * Note: current WIP and using segmentation to contour conversion,
5
+ * routine that is not fully tested
6
+ *
7
+ * @param segmentations - Cornerstone tool segmentations data
8
+ * @param metadataProvider - Metadata provider
9
+ * @param DicomMetadataStore - metadata store instance
10
+ * @param cs - cornerstone instance
11
+ * @param csTools - cornerstone tool instance
12
+ * @returns Report object containing the dataset
13
+ */
14
+ declare function generateRTSSFromSegmentations(segmentations: any, metadataProvider: any, DicomMetadataStore: any, cornerstoneCache: any, cornerstoneToolsEnums: any, vtkUtils: any): any;
15
+ /**
16
+ * Convert handles to RTSSReport report object containing the dcmjs dicom dataset.
17
+ *
18
+ * Note: The tool data needs to be formatted in a specific way, and currently
19
+ * it is limited to the RectangleROIStartEndTool in the Cornerstone.
20
+ *
21
+ * @param annotations Array of Cornerstone tool annotation data
22
+ * @param metadataProvider Metadata provider
23
+ * @param options report generation options
24
+ * @returns Report object containing the dataset
25
+ */
26
+ declare function generateRTSSFromAnnotations(annotations: any, metadataProvider: any, DicomMetadataStore: any, options: any): any;
27
+ export { generateRTSSFromSegmentations, generateRTSSFromAnnotations };
@@ -1,3 +1,3 @@
1
1
  import { generateContourSetsFromLabelmap } from "./utilities/generateContourSetsFromLabelmap";
2
- import RTSS from "./RTSS";
3
- export { generateContourSetsFromLabelmap, RTSS };
2
+ import { generateRTSSFromAnnotations, generateRTSSFromSegmentations } from "./RTSS";
3
+ export { generateContourSetsFromLabelmap, generateRTSSFromAnnotations, generateRTSSFromSegmentations };
@@ -7,7 +7,7 @@ import EllipticalROI from "./EllipticalROI";
7
7
  import RectangleROI from "./RectangleROI";
8
8
  import PlanarFreehandROI from "./PlanarFreehandROI";
9
9
  import * as Segmentation from "./Segmentation";
10
- import * as RTStruct from "./RTStruct";
10
+ import * as RTSS from "./RTStruct";
11
11
  declare const Cornerstone3DSR: {
12
12
  Bidirectional: typeof Bidirectional;
13
13
  CobbAngle: typeof CobbAngle;
@@ -25,6 +25,8 @@ declare const Cornerstone3DSR: {
25
25
  };
26
26
  declare const Cornerstone3DSEG: {
27
27
  Segmentation: typeof Segmentation;
28
- RTStruct: typeof RTStruct;
29
28
  };
30
- export { Cornerstone3DSR, Cornerstone3DSEG };
29
+ declare const Cornerstone3DRT: {
30
+ RTSS: typeof RTSS;
31
+ };
32
+ export { Cornerstone3DSR, Cornerstone3DSEG, Cornerstone3DRT };
@@ -35,10 +35,14 @@ declare const adaptersSEG: {
35
35
  };
36
36
  Cornerstone3D: {
37
37
  Segmentation: typeof import("./Cornerstone3D/Segmentation");
38
- RTStruct: typeof import("./Cornerstone3D/RTStruct");
39
38
  };
40
39
  VTKjs: {
41
40
  Segmentation: any;
42
41
  };
43
42
  };
44
- export { adaptersSR, adaptersSEG, Enums, helpers };
43
+ declare const adaptersRT: {
44
+ Cornerstone3D: {
45
+ RTSS: typeof import("./Cornerstone3D/RTStruct");
46
+ };
47
+ };
48
+ export { adaptersSR, adaptersSEG, adaptersRT, Enums, helpers };
@@ -1,2 +1,2 @@
1
- import { adaptersSR, adaptersSEG, Enums, helpers } from "./adapters";
2
- export { adaptersSR, adaptersSEG, Enums, helpers };
1
+ import { adaptersSR, adaptersSEG, Enums, adaptersRT, helpers } from "./adapters";
2
+ export { adaptersSR, adaptersSEG, adaptersRT, Enums, helpers };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/adapters",
3
- "version": "1.20.0",
3
+ "version": "1.20.2",
4
4
  "description": "Adapters for Cornerstone3D to/from formats including DICOM SR and others",
5
5
  "src": "src/index.ts",
6
6
  "main": "./dist/@cornerstonejs/adapters.es.js",
@@ -49,9 +49,9 @@
49
49
  "ndarray": "^1.0.19"
50
50
  },
51
51
  "devDependencies": {
52
- "@cornerstonejs/core": "^1.20.0",
53
- "@cornerstonejs/streaming-image-volume-loader": "^1.20.0",
54
- "@cornerstonejs/tools": "^1.20.0"
52
+ "@cornerstonejs/core": "^1.20.2",
53
+ "@cornerstonejs/streaming-image-volume-loader": "^1.20.2",
54
+ "@cornerstonejs/tools": "^1.20.2"
55
55
  },
56
- "gitHead": "165495ec246e9618992b6e10e3577b4a28a91e34"
56
+ "gitHead": "d673fe66770c002badf0374cb7de7f4dabef787b"
57
57
  }