dcmjs 0.19.1 → 0.19.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.
- package/build/dcmjs.es.js +13 -2
- package/build/dcmjs.es.js.map +1 -1
- package/build/dcmjs.js +13 -2
- package/build/dcmjs.js.map +1 -1
- package/package.json +1 -1
package/build/dcmjs.es.js
CHANGED
|
@@ -12844,12 +12844,23 @@ function checkIfPerpendicular(iop1, iop2, tolerance) {
|
|
|
12844
12844
|
|
|
12845
12845
|
function unpackPixelData$1(multiframe) {
|
|
12846
12846
|
var segType = multiframe.SegmentationType;
|
|
12847
|
+
var data;
|
|
12848
|
+
|
|
12849
|
+
if (Array.isArray(multiframe.PixelData)) {
|
|
12850
|
+
data = multiframe.PixelData[0];
|
|
12851
|
+
} else {
|
|
12852
|
+
data = multiframe.PixelData;
|
|
12853
|
+
}
|
|
12854
|
+
|
|
12855
|
+
if (data === undefined) {
|
|
12856
|
+
log.error("This segmentation pixeldata is undefined.");
|
|
12857
|
+
}
|
|
12847
12858
|
|
|
12848
12859
|
if (segType === "BINARY") {
|
|
12849
|
-
return BitArray.unpack(
|
|
12860
|
+
return BitArray.unpack(data);
|
|
12850
12861
|
}
|
|
12851
12862
|
|
|
12852
|
-
var pixelData = new Uint8Array(
|
|
12863
|
+
var pixelData = new Uint8Array(data);
|
|
12853
12864
|
var max = multiframe.MaximumFractionalValue;
|
|
12854
12865
|
var onlyMaxAndZero = pixelData.find(function (element) {
|
|
12855
12866
|
return element !== 0 && element !== max;
|