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
0 answers

How to Scale Fibers's object use XTK API

There is a problem, the Fibers object can not automatic alignment with Volume and Mesh. Those files are come from the same source (one subject's DICOM file) so it should can be match together in default. If only show the Fibers object, it can be put…
AndyWhite
  • 83
  • 1
  • 7
1
vote
1 answer

Converting .stl or .vtk file to JSON

I've been looking for ways how to convert vtk or stl files to json. I'm asking because I want to load my 3d models to web browser using https://github.com/xtk/X XTK library. But the vtk/stl files are too large (about 100 MB) to be displayed on the…
user2979961
  • 43
  • 1
  • 5
1
vote
0 answers

NRRD volume offset in 2D renderer

I'm just looking into a project of making a scan viewer much like Slice:Drop from the Xtk examples. I'm very new to XTK and web programming in general. I'm using an example file of a brain, but in Slice:Drop and my own implementation (mostly…
David Basalla
  • 2,996
  • 3
  • 18
  • 22
1
vote
0 answers

X toolkit, How to access rendered canvas data in Chromium

With the http://lessons.goxtk.com/00/ and I am trying to get the data as an image ( toDataURL('image/webp') ) from the canvas in Chromium 31.0.1650.63 (debian). After loading the page, I typed at the javascript console the followings : canvas =…
vaggos2002
  • 31
  • 1
  • 3
1
vote
0 answers

MaskedTextBox not showing anything if Text is bound to string that doesn't match mask

I am using a MaskedTextBox (from the Extended WPF Toolkit) to input/display an ID. There are potentially old IDs in the database which do not match the mask, and what I would like it to do in this case is still display the string but have it give a…
StuartMorgan
  • 658
  • 5
  • 28
1
vote
1 answer

Given a point P and slice normals, How do I get the slice index value to place the slice on the point P?

I want to place the "custom slice" showed on lesson 17 on a specific position. To do that, it is necessary modify the normals (that's done) and translate the slice to a given point P(x,y,z). I notice that the slice index values varies a lot…
1
vote
1 answer

The volume disappears when the slice X normals are changed

I want to fuse the lesson 10 and 17 to visualize the volume, the canonical Slices (like in the lesson 10) and the reslice of the sliceX (lesson 17). To do that, I modified the lesson 10 code. The problems detected are: The Slice X appears when the…
1
vote
1 answer

Flip Nifti images (.nii)

I am loading CT scan nifti (.nii) images using XTK. I want to modify the default orientation of images and flip them, for example up/down or left/right before rendering (onShowtime). So, how can I get the default orientation and then how can I…
Adil
  • 28
  • 6
1
vote
1 answer

Draw a circle on top of Renderer2D

I created a renderer2D so the user can click and pick the centre of a lesion. I want to show the user where he clicked. Currently my idea is to freeze the renderer (so the slice will be the same and the zoom too) and then use the canvas to draw a…
JLecoeur
  • 35
  • 5
1
vote
1 answer

DICOM Render not showing all slices (with possible fix)

I had 88 DICOM image importing into a 2D Render, but only 8 where showing. Using Chrome's developer tools I was able to see that all data (88 slices) were loaded. However, the V.MRI.pixdim was incorrect (reporting a slice thickness of 9+ where it…
Ben Wagner
  • 37
  • 1
  • 5
1
vote
1 answer

Can you apply colour maps to volume renders?

Every example I have seen only renders in greyscale. Is there a way to map scalar volumes in voxels to colours? ( similar to vtkColorTransferFunction in VTK for example?) If there is no support for this out of the box, how difficult would it be for…
Perryn Fowler
  • 2,192
  • 1
  • 12
  • 20
1
vote
2 answers

Wrong volume bounding box

I'm using Xtk to make a widget to measure distances in a volume. In the scene there are four object: a volume, two spheres an a cube. the cube is placed at origin and the spheres are translated 30 units along X and Y axis, each in opposite…
JPOV
  • 23
  • 3
1
vote
0 answers

XTK not displaying uncompressed DICOM in 2D render

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

Use filedata instead of file attribute to pass data

I'm trying to render vtk objects which are send from a webserver directly on the client using XTK without storing them to the disk. According to the XTK Documentation I just have to pass the vtk file as string into X.Mesh.filedata, but it just…
Paul Klemm
  • 265
  • 1
  • 9
1
vote
2 answers

Load dicom files

I am trying to view (uncompressed) dicom files using XTK. However the browser does not show anything, although it seems that it is loading normally. Does it matter that the slices from DICOM files are horizontal? In the Lesson 15 at…
1 2
3
10 11