@cornerstonejs/adapters 2.0.0-beta.20 → 2.0.0-beta.22
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/esm/adapters/Cornerstone/MeasurementReport.js +3 -1
- package/dist/esm/adapters/Cornerstone/index.d.ts +2 -2
- package/dist/esm/adapters/Cornerstone3D/MeasurementReport.js +3 -1
- package/dist/esm/adapters/Cornerstone3D/Segmentation/generateSegmentation.js +1 -1
- package/dist/esm/adapters/helpers/downloadDICOMData.d.ts +1 -1
- package/dist/esm/adapters/index.d.ts +2 -2
- package/dist/umd/adapters.umd.js +7 -3
- package/dist/umd/adapters.umd.js.map +1 -1
- package/package.json +7 -5
|
@@ -25,7 +25,9 @@ var FINDING_SITE_OLD = {
|
|
|
25
25
|
};
|
|
26
26
|
var codeValueMatch = function codeValueMatch(group, code, oldCode) {
|
|
27
27
|
var ConceptNameCodeSequence = group.ConceptNameCodeSequence;
|
|
28
|
-
if (!ConceptNameCodeSequence)
|
|
28
|
+
if (!ConceptNameCodeSequence) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
29
31
|
var CodingSchemeDesignator = ConceptNameCodeSequence.CodingSchemeDesignator,
|
|
30
32
|
CodeValue = ConceptNameCodeSequence.CodeValue;
|
|
31
33
|
return CodingSchemeDesignator == code.CodingSchemeDesignator && CodeValue == code.CodeValue || oldCode && CodingSchemeDesignator == oldCode.CodingSchemeDesignator && CodeValue == oldCode.CodeValue;
|
|
@@ -22,11 +22,11 @@ declare const CornerstoneSR: {
|
|
|
22
22
|
};
|
|
23
23
|
declare const CornerstoneSEG: {
|
|
24
24
|
Segmentation: {
|
|
25
|
-
generateSegmentation: (images:
|
|
25
|
+
generateSegmentation: (images: object[], labelmaps3DorBrushData: any | any[], options?: {
|
|
26
26
|
includeSliceSpacing: boolean;
|
|
27
27
|
}, cornerstoneToolsVersion?: number) => any;
|
|
28
28
|
generateToolState: (imageIds: string[], arrayBuffer: ArrayBuffer, metadataProvider: any, skipOverlapping?: bool, tolerance?: number, cornerstoneToolsVersion?: number) => any;
|
|
29
|
-
fillSegmentation: (segmentation:
|
|
29
|
+
fillSegmentation: (segmentation: object[], inputLabelmaps3D: any | any[], options?: {
|
|
30
30
|
includeSliceSpacing: boolean;
|
|
31
31
|
}, cornerstoneToolsVersion?: number) => Blob;
|
|
32
32
|
};
|
|
@@ -28,7 +28,9 @@ var FINDING_SITE_OLD = {
|
|
|
28
28
|
};
|
|
29
29
|
var codeValueMatch = function codeValueMatch(group, code, oldCode) {
|
|
30
30
|
var ConceptNameCodeSequence = group.ConceptNameCodeSequence;
|
|
31
|
-
if (!ConceptNameCodeSequence)
|
|
31
|
+
if (!ConceptNameCodeSequence) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
32
34
|
var CodingSchemeDesignator = ConceptNameCodeSequence.CodingSchemeDesignator,
|
|
33
35
|
CodeValue = ConceptNameCodeSequence.CodeValue;
|
|
34
36
|
return CodingSchemeDesignator == code.CodingSchemeDesignator && CodeValue == code.CodeValue || oldCode && CodingSchemeDesignator == oldCode.CodingSchemeDesignator && CodeValue == oldCode.CodeValue;
|
|
@@ -33,7 +33,7 @@ function _createMultiframeSegmentationFromReferencedImages(images, metadata, opt
|
|
|
33
33
|
// Todo: move to dcmjs tag style
|
|
34
34
|
SOPClassUID: instance.SopClassUID || instance.SOPClassUID,
|
|
35
35
|
SOPInstanceUID: instance.SopInstanceUID || instance.SOPInstanceUID,
|
|
36
|
-
PixelData: image.
|
|
36
|
+
PixelData: image.voxelManager.getScalarData(),
|
|
37
37
|
_vrMap: {
|
|
38
38
|
PixelData: "OW"
|
|
39
39
|
},
|
|
@@ -38,11 +38,11 @@ declare const adaptersSR: {
|
|
|
38
38
|
declare const adaptersSEG: {
|
|
39
39
|
Cornerstone: {
|
|
40
40
|
Segmentation: {
|
|
41
|
-
generateSegmentation: (images:
|
|
41
|
+
generateSegmentation: (images: object[], labelmaps3DorBrushData: any | any[], options?: {
|
|
42
42
|
includeSliceSpacing: boolean;
|
|
43
43
|
}, cornerstoneToolsVersion?: number) => any;
|
|
44
44
|
generateToolState: (imageIds: string[], arrayBuffer: ArrayBuffer, metadataProvider: any, skipOverlapping?: bool, tolerance?: number, cornerstoneToolsVersion?: number) => any;
|
|
45
|
-
fillSegmentation: (segmentation:
|
|
45
|
+
fillSegmentation: (segmentation: object[], inputLabelmaps3D: any | any[], options?: {
|
|
46
46
|
includeSliceSpacing: boolean;
|
|
47
47
|
}, cornerstoneToolsVersion?: number) => Blob;
|
|
48
48
|
};
|
package/dist/umd/adapters.umd.js
CHANGED
|
@@ -580,7 +580,9 @@
|
|
|
580
580
|
};
|
|
581
581
|
var codeValueMatch$1 = function codeValueMatch(group, code, oldCode) {
|
|
582
582
|
var ConceptNameCodeSequence = group.ConceptNameCodeSequence;
|
|
583
|
-
if (!ConceptNameCodeSequence)
|
|
583
|
+
if (!ConceptNameCodeSequence) {
|
|
584
|
+
return;
|
|
585
|
+
}
|
|
584
586
|
var CodingSchemeDesignator = ConceptNameCodeSequence.CodingSchemeDesignator,
|
|
585
587
|
CodeValue = ConceptNameCodeSequence.CodeValue;
|
|
586
588
|
return CodingSchemeDesignator == code.CodingSchemeDesignator && CodeValue == code.CodeValue || oldCode && CodingSchemeDesignator == oldCode.CodingSchemeDesignator && CodeValue == oldCode.CodeValue;
|
|
@@ -3554,7 +3556,9 @@
|
|
|
3554
3556
|
};
|
|
3555
3557
|
var codeValueMatch = function codeValueMatch(group, code, oldCode) {
|
|
3556
3558
|
var ConceptNameCodeSequence = group.ConceptNameCodeSequence;
|
|
3557
|
-
if (!ConceptNameCodeSequence)
|
|
3559
|
+
if (!ConceptNameCodeSequence) {
|
|
3560
|
+
return;
|
|
3561
|
+
}
|
|
3558
3562
|
var CodingSchemeDesignator = ConceptNameCodeSequence.CodingSchemeDesignator,
|
|
3559
3563
|
CodeValue = ConceptNameCodeSequence.CodeValue;
|
|
3560
3564
|
return CodingSchemeDesignator == code.CodingSchemeDesignator && CodeValue == code.CodeValue || oldCode && CodingSchemeDesignator == oldCode.CodingSchemeDesignator && CodeValue == oldCode.CodeValue;
|
|
@@ -5076,7 +5080,7 @@
|
|
|
5076
5080
|
// Todo: move to dcmjs tag style
|
|
5077
5081
|
SOPClassUID: instance.SopClassUID || instance.SOPClassUID,
|
|
5078
5082
|
SOPInstanceUID: instance.SopInstanceUID || instance.SOPInstanceUID,
|
|
5079
|
-
PixelData: image.
|
|
5083
|
+
PixelData: image.voxelManager.getScalarData(),
|
|
5080
5084
|
_vrMap: {
|
|
5081
5085
|
PixelData: "OW"
|
|
5082
5086
|
},
|