dicom - XTK 加载 dicom 文件时出错

标签 dicom xtk

仔细阅读了有关同类问题的多个线程后,我仍然不知道我的 dicom 加载问题是怎么回事。

事情是这样的:我有一个由 193 个 .dcm 文件组成的 dicom 数据集,这些文件在我的服务器上以文本文件形式列出。 .dcm 文件位于同一服务器上。

这是我用来获取每个 .dcm 文件的位置并将它们加载到卷中的代码:

$.ajax({
  url:'files/T1.txt',
  success: function (data) {
    var tmpdata=data.toString();
    var filenames=tmpdata.split('\n');
    T1slice = new X.renderer2D();
    T1slice.container = 'T12D';
    T1slice.orientation = 'Z';
    T1slice.init()
    T1volume= new X.volume();
    T1volume.file = filenames.sort().map(function(v) {return v;});
    T1slice.add(T1volume);
    T1slice.render();
  }
});//end of ajax query

我在控制台中收到消息,告诉我每个 .dcm 文件都打开得很好(或者至少我认为它是这么说的)

GET http://localhost/titan2.0/files/VG/t1_axial_stea...echo1/t1_axial_stealth-post-12_echo1_I000192.dcm 200 OK 1.67s    loader.js (line 241) 

然后我收到以下错误消息:

Unknown number of bits allocated - using default: 32 bits parserDCM.js (line 316)

TypeError: first_image_data is null
this._slices = object._children[this._orientationIndex]._children;
renderer2D.js (line 657)

TypeError: object._children[this._orientationIndex] is undefined
this._slices = object._children[this._orientationIndex]._children;
renderer2D.js (line 657)

任何帮助将不胜感激。

最佳答案

尝试将图像拖放到 http://slicedrop.com

如果它确实有效,则您的代码可能有问题。

Slicedrop 在 github 上开源:https://github.com/slicedrop/slicedrop.github.com

关于dicom - XTK 加载 dicom 文件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22356911/

相关文章:

javascript - Xtk : Can't display label map

colors - 更改 XTK Renderer2D 中像素的颜色

ios - 如何在支持8位无符号整数的设备上合法显示DICOM 16无符号整数?

windows - DCMTK movescu 错误 : response suceed but no file received

c# - 如何使用 fo-DICOM 删除或更新私有(private)标签?

dicom - 如何获取在 C-MOVE 调用期间未成功检索的所有 SOP 实例的列表?

java - 使用 PixelMed 解析 DICOM header

javascript - 使用 XTK 读取 ASCII VTK