@cornerstonejs/adapters 2.0.0-beta.6 → 2.0.0-beta.8
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.
- package/dist/adapters.es.js +643 -977
- package/dist/adapters.es.js.map +1 -1
- package/dist/types/adapters/Cornerstone3D/PlanarFreehandROI.d.ts +9 -2
- package/dist/types/adapters/Cornerstone3D/RTStruct/RTSS.d.ts +4 -5
- package/dist/types/adapters/Cornerstone3D/RTStruct/index.d.ts +2 -1
- package/dist/types/adapters/Cornerstone3D/UltrasoundDirectional.d.ts +36 -0
- package/dist/types/adapters/Cornerstone3D/index.d.ts +2 -0
- package/dist/types/adapters/index.d.ts +1 -0
- package/package.json +5 -5
|
@@ -20,9 +20,16 @@ declare class PlanarFreehandROI {
|
|
|
20
20
|
findingSites: any[];
|
|
21
21
|
};
|
|
22
22
|
static getTID300RepresentationArguments(tool: any, worldToImageCoords: any): {
|
|
23
|
+
/** From cachedStats */
|
|
23
24
|
points: any;
|
|
24
|
-
area:
|
|
25
|
-
|
|
25
|
+
area: any;
|
|
26
|
+
areaUnit: any;
|
|
27
|
+
perimeter: any;
|
|
28
|
+
modalityUnit: any;
|
|
29
|
+
mean: any;
|
|
30
|
+
max: any;
|
|
31
|
+
stdDev: any;
|
|
32
|
+
/** Other */
|
|
26
33
|
trackingIdentifierTextValue: string;
|
|
27
34
|
finding: any;
|
|
28
35
|
findingSites: any;
|
|
@@ -11,17 +11,16 @@
|
|
|
11
11
|
* @param csTools - cornerstone tool instance
|
|
12
12
|
* @returns Report object containing the dataset
|
|
13
13
|
*/
|
|
14
|
-
declare function generateRTSSFromSegmentations(segmentations: any, metadataProvider: any, DicomMetadataStore: any
|
|
14
|
+
declare function generateRTSSFromSegmentations(segmentations: any, metadataProvider: any, DicomMetadataStore: any): any;
|
|
15
15
|
/**
|
|
16
16
|
* Convert handles to RTSSReport report object containing the dcmjs dicom dataset.
|
|
17
17
|
*
|
|
18
18
|
* Note: The tool data needs to be formatted in a specific way, and currently
|
|
19
19
|
* it is limited to the RectangleROIStartEndTool in the Cornerstone.
|
|
20
20
|
*
|
|
21
|
-
* @param annotations Array of Cornerstone tool annotation data
|
|
22
|
-
* @param metadataProvider Metadata provider
|
|
23
|
-
* @param options report generation options
|
|
21
|
+
* @param annotations - Array of Cornerstone tool annotation data
|
|
22
|
+
* @param metadataProvider - Metadata provider
|
|
24
23
|
* @returns Report object containing the dataset
|
|
25
24
|
*/
|
|
26
|
-
declare function generateRTSSFromAnnotations(annotations: any, metadataProvider: any, DicomMetadataStore: any
|
|
25
|
+
declare function generateRTSSFromAnnotations(annotations: any, metadataProvider: any, DicomMetadataStore: any): any;
|
|
27
26
|
export { generateRTSSFromSegmentations, generateRTSSFromAnnotations };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { utilities } from "@cornerstonejs/tools";
|
|
2
2
|
import { generateRTSSFromAnnotations, generateRTSSFromSegmentations } from "./RTSS";
|
|
3
|
+
declare const generateContourSetsFromLabelmap: typeof utilities.contours.generateContourSetsFromLabelmap;
|
|
3
4
|
export { generateContourSetsFromLabelmap, generateRTSSFromAnnotations, generateRTSSFromSegmentations };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare class UltrasoundDirectional {
|
|
2
|
+
static toolType: string;
|
|
3
|
+
static utilityToolType: string;
|
|
4
|
+
static TID300Representation: any;
|
|
5
|
+
static isValidCornerstoneTrackingIdentifier: (TrackingIdentifier: any) => boolean;
|
|
6
|
+
static getMeasurementData(MeasurementGroup: any, sopInstanceUIDToImageIdMap: any, imageToWorldCoords: any, metadata: any): {
|
|
7
|
+
description: any;
|
|
8
|
+
sopInstanceUid: any;
|
|
9
|
+
annotation: {
|
|
10
|
+
annotationUID: any;
|
|
11
|
+
metadata: {
|
|
12
|
+
toolName: any;
|
|
13
|
+
referencedImageId: any;
|
|
14
|
+
FrameOfReferenceUID: any;
|
|
15
|
+
label: string;
|
|
16
|
+
};
|
|
17
|
+
data: any;
|
|
18
|
+
};
|
|
19
|
+
finding: any;
|
|
20
|
+
findingSites: any[];
|
|
21
|
+
};
|
|
22
|
+
static getTID300RepresentationArguments(tool: any, worldToImageCoords: any): {
|
|
23
|
+
point1: {
|
|
24
|
+
x: any;
|
|
25
|
+
y: any;
|
|
26
|
+
};
|
|
27
|
+
point2: {
|
|
28
|
+
x: any;
|
|
29
|
+
y: any;
|
|
30
|
+
};
|
|
31
|
+
trackingIdentifierTextValue: string;
|
|
32
|
+
finding: any;
|
|
33
|
+
findingSites: any;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export default UltrasoundDirectional;
|
|
@@ -6,6 +6,7 @@ import CircleROI from "./CircleROI";
|
|
|
6
6
|
import EllipticalROI from "./EllipticalROI";
|
|
7
7
|
import RectangleROI from "./RectangleROI";
|
|
8
8
|
import PlanarFreehandROI from "./PlanarFreehandROI";
|
|
9
|
+
import UltrasoundDirectional from "./UltrasoundDirectional";
|
|
9
10
|
import * as Segmentation from "./Segmentation";
|
|
10
11
|
import * as RTSS from "./RTStruct";
|
|
11
12
|
declare const Cornerstone3DSR: {
|
|
@@ -19,6 +20,7 @@ declare const Cornerstone3DSR: {
|
|
|
19
20
|
ArrowAnnotate: any;
|
|
20
21
|
Probe: any;
|
|
21
22
|
PlanarFreehandROI: typeof PlanarFreehandROI;
|
|
23
|
+
UltrasoundDirectional: typeof UltrasoundDirectional;
|
|
22
24
|
MeasurementReport: typeof MeasurementReport;
|
|
23
25
|
CodeScheme: any;
|
|
24
26
|
CORNERSTONE_3D_TAG: any;
|
|
@@ -24,6 +24,7 @@ declare const adaptersSR: {
|
|
|
24
24
|
ArrowAnnotate: any;
|
|
25
25
|
Probe: any;
|
|
26
26
|
PlanarFreehandROI: typeof import("./Cornerstone3D/PlanarFreehandROI").default;
|
|
27
|
+
UltrasoundDirectional: typeof import("./Cornerstone3D/UltrasoundDirectional").default;
|
|
27
28
|
MeasurementReport: typeof import("./Cornerstone3D/MeasurementReport").default;
|
|
28
29
|
CodeScheme: any;
|
|
29
30
|
CORNERSTONE_3D_TAG: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/adapters",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.8",
|
|
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,15 +42,15 @@
|
|
|
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": "^2.0.0-beta.8",
|
|
45
46
|
"buffer": "^6.0.3",
|
|
46
47
|
"dcmjs": "^0.29.8",
|
|
47
48
|
"gl-matrix": "^3.4.3",
|
|
48
49
|
"ndarray": "^1.0.19"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
|
-
"@cornerstonejs/core": "^2.0.0-beta.
|
|
52
|
-
"@cornerstonejs/streaming-image-volume-loader": "^2.0.0-beta.
|
|
53
|
-
"@cornerstonejs/tools": "^2.0.0-beta.6"
|
|
52
|
+
"@cornerstonejs/core": "^2.0.0-beta.8",
|
|
53
|
+
"@cornerstonejs/streaming-image-volume-loader": "^2.0.0-beta.8"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "c819538c6857ef3c8dad09a38c66bf4163377aae"
|
|
56
56
|
}
|