2014-03-12 84 views
2

在仔細閱讀了幾個關於相同類型問題的線程之後,我仍然不知道我的dicom加載問題發生了什麼。XTK加載dicom文件時出錯

這裏是一件事:我有一個dicom數據集由193個.dcm文件組成,這些文件在我的服務器上列出的文本文件中。 .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) 

任何幫助將不勝感激。

回答

2

嘗試拖動和http://slicedrop.com

下降的圖像。如果它不工作,可能有一些錯誤代碼。

Slicedrop在GitHub上的開源:https://github.com/slicedrop/slicedrop.github.com

+0

良好的漁獲物。它不會在切片加載。所以它可能是損壞的dcm文件或錯誤的格式或不是...任何想法如何進一步調查? – JLecoeur

+0

當然是XTK中的一個bug,那麼有沒有什麼辦法可以共享數據集,或者至少有一次切片? 要調試它,你可以使用'未編譯'版本的XTK。 IO/parserDCM.js中的一定是錯誤的 – Nicolas

+0

這是一個指向包含匿名化dicom的壓縮存檔的鏈接:http://tinyurl.com/llvtgu8 – JLecoeur