@cornerstonejs/adapters 1.82.7 → 1.83.0

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,7 @@
1
+ declare function generateToolState(imageIds: any, arrayBuffer: any, metadataProvider: any, tolerance?: number): Promise<{
2
+ pixelData: any;
3
+ }>;
4
+ declare const ParametricMapObj: {
5
+ generateToolState: typeof generateToolState;
6
+ };
7
+ export { ParametricMapObj as default, ParametricMapObj as ParametricMap };
@@ -13,4 +13,11 @@ declare const CornerstoneSR: {
13
13
  declare const CornerstoneSEG: {
14
14
  Segmentation: any;
15
15
  };
16
- export { CornerstoneSR, CornerstoneSEG };
16
+ declare const CornerstonePMAP: {
17
+ ParametricMap: {
18
+ generateToolState: (imageIds: any, arrayBuffer: any, metadataProvider: any, tolerance?: number) => Promise<{
19
+ pixelData: any;
20
+ }>;
21
+ };
22
+ };
23
+ export { CornerstoneSR, CornerstoneSEG, CornerstonePMAP };
@@ -28,7 +28,10 @@ declare const Cornerstone3DSR: {
28
28
  declare const Cornerstone3DSEG: {
29
29
  Segmentation: typeof Segmentation;
30
30
  };
31
+ declare const Cornerstone3DPMAP: {
32
+ ParametricMap: any;
33
+ };
31
34
  declare const Cornerstone3DRT: {
32
35
  RTSS: typeof RTSS;
33
36
  };
34
- export { Cornerstone3DSR, Cornerstone3DSEG, Cornerstone3DRT };
37
+ export { Cornerstone3DSR, Cornerstone3DSEG, Cornerstone3DPMAP, Cornerstone3DRT };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Returns true if iop1 and iop2 are perpendicular within a tolerance.
3
+ *
4
+ * @param iop1 - First ImageOrientationPatient
5
+ * @param iop2 - Second ImageOrientationPatient
6
+ * @param tolerance - Tolerance
7
+ * @returns True if iop1 and iop2 are equal.
8
+ */
9
+ export default function checkIfPerpendicular(iop1: number[], iop2: number[], tolerance: number): boolean;
@@ -0,0 +1 @@
1
+ export default function checkOrientation(multiframe: any, validOrientations: any, sourceDataDimensions: any, tolerance: any): "Planar" | "Perpendicular" | "Oblique";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Returns true if array1 and array2 are equal within a tolerance.
3
+ *
4
+ * @param array1 - First array
5
+ * @param array2 - Second array
6
+ * @param tolerance - Tolerance
7
+ * @returns True if array1 and array2 are equal.
8
+ */
9
+ export default function compareArrays(array1: number[], array2: number[], tolerance: number): boolean;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Convert an array of cornerstone images into datasets
3
+ *
4
+ * @param images - An array of the cornerstone image objects
5
+ * @param isMultiframe - Whether the images are multiframe
6
+ * @param options - Options object that may contain:
7
+ * - SpecificCharacterSet: character set to be set to each dataset
8
+ */
9
+ export default function getDatasetsFromImages(images: any, isMultiframe: any, options?: any): any;
@@ -41,9 +41,21 @@ declare const adaptersSEG: {
41
41
  Segmentation: any;
42
42
  };
43
43
  };
44
+ declare const adaptersPMAP: {
45
+ Cornerstone: {
46
+ ParametricMap: {
47
+ generateToolState: (imageIds: any, arrayBuffer: any, metadataProvider: any, tolerance?: number) => Promise<{
48
+ pixelData: any;
49
+ }>;
50
+ };
51
+ };
52
+ Cornerstone3D: {
53
+ ParametricMap: any;
54
+ };
55
+ };
44
56
  declare const adaptersRT: {
45
57
  Cornerstone3D: {
46
58
  RTSS: typeof import("./Cornerstone3D/RTStruct");
47
59
  };
48
60
  };
49
- export { adaptersSR, adaptersSEG, adaptersRT, Enums, helpers };
61
+ export { adaptersSR, adaptersSEG, adaptersPMAP, adaptersRT, Enums, helpers };
@@ -1,2 +1,2 @@
1
- import { adaptersSR, adaptersSEG, Enums, adaptersRT, helpers } from "./adapters";
2
- export { adaptersSR, adaptersSEG, adaptersRT, Enums, helpers };
1
+ import { Enums, adaptersSR, adaptersSEG, adaptersPMAP, adaptersRT, helpers } from "./adapters";
2
+ export { adaptersSR, adaptersSEG, adaptersPMAP, adaptersRT, Enums, helpers };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/adapters",
3
- "version": "1.82.7",
3
+ "version": "1.83.0",
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",
@@ -42,7 +42,7 @@
42
42
  "homepage": "https://github.com/cornerstonejs/cornerstone3D/blob/main/packages/adapters/README.md",
43
43
  "dependencies": {
44
44
  "@babel/runtime-corejs2": "^7.17.8",
45
- "@cornerstonejs/tools": "^1.82.7",
45
+ "@cornerstonejs/tools": "^1.83.0",
46
46
  "buffer": "^6.0.3",
47
47
  "dcmjs": "^0.29.8",
48
48
  "gl-matrix": "^3.4.3",
@@ -50,8 +50,8 @@
50
50
  "ndarray": "^1.0.19"
51
51
  },
52
52
  "devDependencies": {
53
- "@cornerstonejs/core": "^1.82.7",
54
- "@cornerstonejs/streaming-image-volume-loader": "^1.82.7"
53
+ "@cornerstonejs/core": "^1.83.0",
54
+ "@cornerstonejs/streaming-image-volume-loader": "^1.83.0"
55
55
  },
56
- "gitHead": "06fd707e6babbc6e6b08a12e007f433ae8166c09"
56
+ "gitHead": "b6bbf9b56de9aab45972d53e0c311280d5d8453f"
57
57
  }