Questions tagged [xtk]

The X Toolkit (XTK) is a WebGL framework for Scientific Visualization.

XTK is a WebGL framework providing an easy-to-use API to visualize scientific data on the web. No background or knowledge in Computer Graphics is required.

158 questions
0
votes
0 answers

Loading NRRD file in Javascript using XTK

My question is if it is possible to load a NRRD file in JavaScript using XTK library. When I tried to use X.loader() I get an error that it does not exist. I would like to just load a file not render it. I have read that there could be a specialized…
LoneWolf
  • 1
  • 2
0
votes
1 answer

How to clip a 3D image in XTK

We have a 3D image composed of a nii volume and several obj meshes. We want to clip it to expose partial image. The viewpoint option at http://www.usc.edu/programs/face/3Dmodel/C57BL6-E185.html is the target. Is it possible to do in XTK?
mei
  • 67
  • 9
0
votes
2 answers

Does xtk.js supports IE-8,9,10?

I have started learning xtk.js. I am playing with sample available on https://github.com/xtk/X .When i run those sample in firefox, chrome it works fine but when i run same samples in IE-8,9,10 it doesn't show anything? Does anybody knows why it is…
0
votes
1 answer

How to change a pixel value in XTK

I would like to know how to change a pixel value for the label map. This is my initial approach. Unfortunately, the changes are not reflected in the canvas. X.volume.prototype.SetPixelLabelMap = function(i, j, k, value){ …
Juan
  • 806
  • 1
  • 8
  • 15
0
votes
1 answer

Accesing javascript array gives unexpeted results

I'm trying to display 3D images (volumes) using Javascript and XTK. I can view the volumes fine, but I am having problems trying to access the volume dimensions. //Create a new volume volume = new X.volume(); //Add data. Works fine, and I can see…
nrhorner
  • 328
  • 6
  • 16
0
votes
1 answer

How to propagate file load error?

I'm attempting to program a browser-based medical image viewer and am using the XTK library to do the heavy lifting. When a file does not load properly (for any number of reasons) I want to let the user know with a pop-up message (eg saying 'File…
David Basalla
  • 2,996
  • 3
  • 18
  • 22
0
votes
1 answer

Othographic Projection in XTK

So I am using XTK to develop a app that will allow users to view multiple 3D meshes in one renderer. The problem is that it uses a perspective camera instead of a orthographic, which causes panning to 'rotate' the meshes a bit. Has anyone been…
Estus
  • 1
0
votes
2 answers

Can I use a local file with X.mesh?

I'm adapting Lesson 5 from here, which takes a skull vtk object and displays it rotating in a circle. I want to change it so instead of accessing the .vtk object at http://x.babymri.org/?skull.vtk, it reads from a local file. Is this possible? I…
user3175137
  • 97
  • 1
  • 9
0
votes
2 answers

XTK - rendering volume in multiple renderers without .onShowtime()?

I'm wondering if someone can explain to me why I can't render the same volume in a 4 panel setup (3D, X, Y, Z) just like in XTK Tutorial 13, without the .onShowtime function. I tried altering the code to do this, rather than call the .onShowtimes…
David Basalla
  • 2,996
  • 3
  • 18
  • 22
0
votes
1 answer

How to automatic alignment Fibers, Volume and Mesh use XTK

I think it is a simple question, but it really confuse me... In the case which I try to show three object together, like Fibers, Volume and Mesh, just as you can see in this demo web. Demo Web: http://goo.gl/NP2eUo But there is a problem, the Fibers…
AndyWhite
  • 83
  • 1
  • 7
0
votes
1 answer

Difference between two volume files

I want to render volume(X.volume()) and cube(X.cube()) on one scene. For testing I use your volume files from lessons. Case 1: var r = new X.renderer3D(); r.init(); var volume = new X.volume(); volume.center = [0, 0, 0]; volume.file =…
stasovlas
  • 7,136
  • 2
  • 28
  • 29
0
votes
1 answer

VTK 3D model displayed in web browser via XTK - how to test and analyze

I'm going to load a 3d model of a knee (saved as .vtk file, created in VTK ) into web browser by XTK library. I have to prepare small assesment of this and analyze the results... I'm wondering which factors I should take into consideration - loading…
user2979961
  • 43
  • 1
  • 5
0
votes
1 answer

xtoolkit - volume.range is undefined

volume.range is undefined here is a part from the code : var sliceXController = volumegui.add(volume, 'indexX', 0, volume.range[0] - 1); var sliceYController = volumegui.add(volume, 'indexY', 0, volume.range[1] - 1); var…
Saidar
  • 17
  • 1
  • 1
  • 9
0
votes
1 answer

ReferenceError: goog is not defined

I am new on XTK with its things. I am following the X:DevelopersHeadsUp to try to run the demo html. 1) I clone the repository and run ./deps.py . Now the xtk-deps.js generated . 2) I invoke the html as given in the guide. XTK…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xtk" class="post-tag grid--cell" title="show questions tagged 'xtk'" rel="tag">xtk</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 30 '14 at 08:13">asked Apr 30 '14 at 08:13</time> <a href="../../users/876534/mai-zi" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/876534.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Mai Zi" /> </a> <div class="s-user-card--info"> <a href="../../users/876534/mai-zi" class="s-user-card--link">Mai Zi</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="2 bronze badges">2</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-22890097"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/22890097/how-to-open-trk-file-in-xtk-from-an-html-link" class="question-hyperlink">How to open .trk file in xtk from an HTML link</a></h3> <div class="excerpt">Does anybody have an example of how to display a .trk file in xtk by sending the filename through HTML link to a javascript function containing xtk code? So basically have some HTML href elements that call javascript containing xtk code sending…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javascript" class="post-tag grid--cell" title="show questions tagged 'javascript'" rel="tag">javascript</a> <a href="../../questions/tagged/xtk" class="post-tag grid--cell" title="show questions tagged 'xtk'" rel="tag">xtk</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 06 '14 at 04:46">asked Apr 06 '14 at 04:46</time> <a href="../../users/3502788/user3502788" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3502788.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user3502788" /> </a> <div class="s-user-card--info"> <a href="../../users/3502788/user3502788" class="s-user-card--link">user3502788</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/xtk_page=5" rel="prev" title="Go to page 5">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/xtk_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/xtk_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/xtk_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/xtk_page=10" rel="" title="Go to page 10">10</a> <a class="s-pagination--item" href="../../questions/tagged/xtk_page=11" rel="" title="Go to page 11">11</a> <a class="s-pagination--item" href="../../questions/tagged/xtk_page=7" rel="next" title="Go to page 7"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>