You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm too stupid! I had seen your modified code, I follow the bitsAllocated judgement, but I was the original else if (VR === "OB") logic in the process, I found my code forgot else.
// OB
else if( vr === "OB")
{
// PixelRepresentation 0->unsigned, 1->signed
var pixelRep = 0;
if ( typeof this.dicomElements.x00280103 !== 'undefined' ) {
pixelRep = this.dicomElements.x00280103.value[0];
}
if(tag.name === "x7FE00010"){
//TODO bitsAllocated logic process
data = reader.readUint16Array( offset, vl );
}
// read accordingly
/*forgot else*/ if (pixelRep === 0) {
data = reader.readUint8Array( offset, vl );
}
else {
data = reader.readUint8Array( offset, vl );
}
offset += vl;
}
Using bitsAllocated and pixelRepresentation for data reading just for
pixel data. Added regular reading for non pixel data. Relates to #270.
Send error when no transfer syntax is provided.
As described in the title, (7FE0,0010)Pixel Data VR=OB and (0002,0010)Transfer Syntax=1.2.840.10008.1.2.1, when pixeldata parse error.
My Capacity is limited, I don't know where to start. :)
Download DCM File:
DWV Parse:
ClearCanvas Parse:
The text was updated successfully, but these errors were encountered: