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
How can I get contour data in rtss dicomFile?
I'm using http to get a rtss file from server client and parse it by dicomParser.js, then I should get the contour data by tag '30060050', bind with ct image and show rtss image over ct image in browser;
however the result is string , which split by '', the '' is an escape character,is ignored,so I can't change it
into array and can not get the z position.
Thanks sincerely!
dicomParser.readFixedString = function (byteArray, position, length) {
if (length < 0) {
throw 'dicomParser.readFixedString - length cannot be less than 0';
}
if (position + length > byteArray.length) {
throw 'dicomParser.readFixedString: attempt to read past end of buffer';
}
var result = "";
var byte;
for (var i = 0; i < length; i++) {
byte = byteArray[position + i];
if (byte === 0) {
position += length;
return result;
}
result += String.fromCharCode(byte);
}
return result;
};
How can I get contour data in rtss dicomFile?
I'm using http to get a rtss file from server client and parse it by dicomParser.js, then I should get the contour data by tag '30060050', bind with ct image and show rtss image over ct image in browser;
however the result is string , which split by '', the '' is an escape character,is ignored,so I can't change it
into array and can not get the z position.
Thanks sincerely!
dicomParser.readFixedString = function (byteArray, position, length) {
if (length < 0) {
throw 'dicomParser.readFixedString - length cannot be less than 0';
}
ROIContourSequence :
Item #0 xfffee000
ContourSequence :
Item #0 xfffee000
ContourData : "-225.05-124.07-122.44-222.9-124.73-122.44-220.75-124.98-122.44-218.6-125.06-122.44-216.46-125.12-122.44-214.31-125.17-122.44-212.16-125.17-122.44-210.01-125.12-122.44-207.86-125.12-122.44-205.71-125.12-122.44-203.56-125.06-122.44-201.42-125.12-122.44-199.27-125.12-122.44-197.12-125.12-122.44-194.97-125.17-122.44-192.82-125.17-122.44-190.67-125.07-122.44-188.53-124.87-122.44-186.38-124.18-122.44-185.87-123.85-122.44-184.23-121.91-122.44-184.13-121.7-122.44-183.77-119.56-122.44-183.79-117.41-122.44-184.03-115.26-122.44-184.23-114.58-122.44-184.77-113.11-122.44-186.38-111.1-122.44-186.57-110.96-122.44-188.53-110.04-122.44-190.67-109.59-122.44-192.82-109.4-122.44-194.97-109.34-122.44-197.12-109.33-122.44-199.27-109.33-122.44-201.42-109.33-122.44-203.56-109.28-122.44-205.71-109.24-122.44-207.86-109.18-122.44-210.01-109.14-122.44-212.16-109.09-122.44-214.31-109.09-122.44-216.46-109.08-122.44-218.6-109.09-122.44-220.75-109.1-122.44-222.9-109.27-122.44-225.05-109.77-122.44-227.2-110.86-122.44-227.32-110.96-122.44-228.84-113.11-122.44-229.35-114.9-122.44-229.43-115.26-122.44-229.49-117.41-122.44-229.35-118.3-122.44-229.12-119.56-122.44-228.05-121.7-122.44-227.2-122.66-122.44-225.47-123.85-122.44"
NumberOfContourPoints : "464"
ContourGeometricType : "CLOSED_PLANAR"
ContourImageSequence :
Item #0 xfffee000
ReferencedSOPInstanceUID : "2.16.840.1.113662.2.12.0.3057.1241703565.529"
ReferencedSOPClassUID : "1.2.840.10008.5.1.4.1.1.2" [ CT Image Storage ]
The text was updated successfully, but these errors were encountered: