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
1
vote
1 answer

VTK object coloring by Data Array support in XTK?

Does XTK support object coloring by data array parsed from VTK file? I Believe the parser does read these arrays but i haven't found a way to apply those to an object. Will or could this be supported in future versions of XTK? Kimmo
1
vote
1 answer

displaying multiple polygon-type objects in XTK

My friend just introduced XTK (www.goxtk.com) to me. Man, it is awesome. I am now trying to visualize a VTK file which has VERTICES, LINES and POLYGONS. I notice that not all three kinds of objects can be displayed. I tried to shuffle their orders…
1
vote
0 answers

How to add crosshair cursor in 2D and 3D rendering?

In the 2D renders, such as in Lesson 13 (http://lessons.goxtk.com/13/), is it possible to add a crosshair cursor indicating the position of orthogonal slices, like this sample? Furthermore, is it possible to show that crosshair in the 3D volume…
Josh
  • 11
  • 3
1
vote
0 answers

Can the volume rendering display colorfully?

In the xtk:lesson 11(http://lessons.goxtk.com/11/), after volume rendering displays none colors. Can I change some code to make it display colorfully after volume rendering?
Marlon_Liu
  • 11
  • 1
1
vote
1 answer

React throwing an error saying that setTimeout is not a function?

Im trying to use the XTK library in react and keeps telling me that the setTimeout function is not a function. My code seems to be pretty clean and it functions well if I just use it directly with the html. However Im trying to get it to work in a…
1
vote
1 answer

Combining AMI.js with XTK's volume rendering

I am currently working on my Bachelor thesis about displaying 3D medical data in the browser. Therefore I am writing an application that can display DICOM images and meshes. As far as I can see, the volume rendering of DICOMs is working better with…
AdLeu
  • 15
  • 3
1
vote
0 answers

Render volume from arrayBuffer with XTK library

I would like to render volume (DICOM) with arrayBuffer data. How can I realize this?
1
vote
0 answers

receive data from arrayBuffer by using XTK

I'm trying to use XTK to load DICOM files, by using the following code: var _dicom = ['1','2','3'] volume.file = _dicom.sort().map(function(v) { return 'data/path/' + v + '.DCM'; }); The Output: is an arrayBuffer I would like to know how to…
1
vote
2 answers

Error while running depswriter.py from google closure library

I am trying to build XTK following this link on Linux running on Oracle VirtualBox to get non-minified xtk.js. I am getting following error when I tried to generate the xtk-deps.js on running deps.py file: Generating dependency file for…
1
vote
0 answers

Get image coordinates by click on renderer in XTK

I am looking at the example in XTK. There are one renderer3D and three renderer2D instances. How can I determine image coordinates by mouse click event (either on 3d renderer or on one of the 2d renderers)? I need it for further labelmap…
Alexey Subach
  • 11,903
  • 7
  • 34
  • 60
1
vote
0 answers

generate canvas display on other viewers based on the draw on one viewer

I am currently writing a web Interface purely javascript based. I use xtk to display medical image from dicom format. I display 3 viewers : Z, X and Y. I use a canevas to draw on the Z orientation ( in order, for example to encircle an important…
Suno
  • 26
  • 3
1
vote
1 answer

Why XTK volume object holds nearly 4 times the total memory of DICOM files

I modified XTK's lesson 13 to load DICOM images from my desktop and do volume rendering. Although it is working fine, I noticed that the X.volume object is holding nearly 4 times the total size of pixel data in the DICOM images. Is it an expected…
1
vote
0 answers

Display 4D (3D + time) in XTK

I am trying to show a medical image known as SWI in XTK. Single volume (timepoint) SWI for displays well. However, we now acquire these images at multiple timepoints ending up with 4D images. Would it be possible to extend XTK to 4D? I can…
Ben Wagner
  • 37
  • 1
  • 5
1
vote
1 answer

Trouble with simple X.transform.rotate (rotation center offset)

I’m very confused right now: the basic X.transform.rotate() function gives unexpected result for me, even with very simple scenes! The angles of the rotations are OK, as you can see here: http://jsfiddle.net/1sv25uLx/ The previous scene contains…
1
vote
0 answers

xtoolkit - how to move or reposition the progress bar and how to customize it?

[xtk] xtoolkit - how to move or reposition the progress bar and how to customize it ? i want to move the progress bar that shows up when loading or rendering ,,, and also i want to customize it ( colors , size , etc ) is it possible using css ? is…
Saidar
  • 17
  • 1
  • 1
  • 9
1
2
3
10 11