I am trying to display some local DICOM / .dcm files with XTK in the 2D render model that are LUNG CT IMAGES from the RIDER dataset hosted on the cancer imaging archive and there are no errors thrown by the console but the images are being outputted as blank. The files and the relative links to the files in the js are correct but still no output.
I also did the "Developer Heads Up" build: https://github.com/xtk/X/wiki/X:DevelopersHeadsUp, as well as trying to use the nightly build: https://github.com/xtk/get/blob/gh-pages/xtk_nightly.js.
var _dicom = ['000008', '000009', '000010', '000011', '000012', '000013', '000014' , '000015' , '000016']; var r = new X.renderer2D(); r.orientation = 'Z'; r.init(); var v = new X.volume(); v.file = _dicom.sort().map(function(v) { return 'img/' + v + '.dcm'; }); r.add(v); r.onWindowLevel(); r.render(); $('canvas').attr('id', 'xtkCanvas'); r.onShowtime = function() { }; volume = v; };
I have also verified that the DICOM files are uncompressed by using OsiriX...