vtk

Import ITK/VTK into Matlab or Matlab into VTK/ITK environment?

For a current project I have to use and do mathemetics on information provided in matrices as well as use ITK/VTK functions for displaying medical information / renders. Basically I have to use both matlab routines and VTK/ITK in a (I guess) 50/50 way. The problem is that, since I have to use both, I want to decide in advance which metho...

What are some recommended resources and tutorials for learning the VTK library toolkit?

Apart from the books available from Kitware, I am looking for some links to any resources that could help in learning the VTK library. Preferably, with example code and tutorials. Google results have not been terribly informative for me. So I am asking here for links to VTK resources. ...

Am I missing step in building/installing VTK-5.4 with Python2.6 bindings on Ubuntu 9.04?

I successfully built and installed VTK-5.4 with Python bindings from source. Yet, when I try to import VTK in python it gives the following Traceback error File "", line 1, in File "/usr/local/lib/python2.6/dist-packages/VTK-5.4.2-py2.6.egg/vtk/init.py", line 41, in from common import * File "/usr/local/lib/p...

Curious about differences in vtkMassProperties for VTK 5.04 and VTK 5.4.2

I have a small python VTK function that calculates the volume and surface area of an object embedded in a stack of TIFF images. To read the TIFF's into VTK, I have used vtkTIFFReader and processed the result using vtkImageThreshold. I then use vtkMassProperties to extract the volume and surface area of the object identified after thres...

VTK Delete() and data deletion

Hi, I was browsing through the VTK 5.4.2 code, and can't seem to understand how does the Delete() function works. I mean, the Delete() function is in vtkObjectBase and is virtual, but, through what chain of commands is the destructor of the vtkDoubleArray class (for example) executed? best regards, mightydodol ...

Wrong Mac OS X framework gets loaded

I've compiled a Python module using my own Qt4 library located in ~/opt/qt-4.6.0/, but when I try to import that module, the dynamic libraries that get loaded are from my MacPorts Qt4 installation. $ /opt/local/bin/python2.6 >>> import vtk objc[58041]: Class QMacSoundDelegate is implemented in both /Users/luis/opt/qt-4.6.0/lib/QtGui.fr...

Image warp with VTK?

Hi all, I'd like to warp a vtkImageData with a vector field, similar to what itk's WarpImageFilter does. the vtkGridTransform object seems promising, but there doesn't seem to be a vtkTransformImageFilter... Is what I want to do at all possible with VTK? Thanks a lot! ...

Just how good is VTK?

I have heard some good reviews oF Visualization ToolKit(VTK) from developers. But, exactly how powerful is it? For example, can it handle visualization of an entire oil reservoir (in a simulator) with billions of grids?? Most industrial reservoir simulators run on parallel processors. I know VTK supports parallel processing, but again h...

Texturing error on a Sphere

I have a number of spherical longitude/latitude coordinates for points on a sphere that I need to visualize. For that purpose, I transformed the points to cartesian coordinates and built a mesh of triangles that I can render with VTK. Works so far. Now I want to use a texture for the sphere model. Therefore I transformed the spherical c...

visualize irregular data in vtk

I have an irregular data, x dimension - 384, y dimension - 256 and z dimension 64. Now these coordinates are stored in 3 separate binary files and i have a data file having a data value for these points. I want to know, how can i represent such data to be easily visualized in vtk. Till now we were using AVS which has fld files, which ca...

Cubic Environment Mapping in VTK

Is it possible to do Cubic Environment Mapping with VTK 5.4 ?? If it is, how can I do it ? ...

Using VTK 5.4.2 with Java in OS X 10.6

Has anybody successfully ran any Java code using VTK 5.4.2 under OS X? I've installed VTK 5.4.2 from source, configured for Java and shared libraries. The vtk.jar file is generated as expected, and the Java program compiles correctly. However, when executing, as soon as the wrapper classes call the underlying *.dylib libraries, it appe...

Flipping the Y axis in vtk

Is there a way that I can make VTK have the Y axis go down (when increasing values) rather than up? I'd like my VTK windows to match my non-VTK windows in displaying data, which all have the Y axis going down. ...

VC++ Library Clashing Problem

I am working on a C++ project that uses Qt (gui lib), VTK (graphics lib) and another library which is so obscure I won't mention its name and will instead call it LIB_X. The project uses Qt for the gui components and VTK (more precisely the QVTKWidget extension provided by VTK that supports Qt) for rendering geometry.. and it uses LIB_X...

C/C++ library for VTK IO

I have a simulation in C++ which generates huge amount of data. Right now I am using MATLAB libraries to save the results as a .mat file, but eventually I will be needing an open source binary format. I don't want to implement my own binary format and ASCII is not an option. I heard that VTK provides .vtk binary file format for saving 3d...

How to use NetBeans to debug C++ libraries not compiled with NetBeans?

Hello, I am using NetBeans 6.8 on Redhat Linux. Does anyone know how to configure NetBeans to debug (step into) libraries not compiled with NetBeans? In my particular case, I'm trying to debug the VTK library which is built using cmake with the Debug flag set. I've written a C++ application that uses the shared libraries from VTK. A...

Qt + VTK + Cmake

I'm running OSX 10.6 (Snow Leopard), Qt 4.6, VTK 5.4, and Cmake 2.8. I installed Qt, then VTK and Cmake. I configured VTK to use QT 4.6 (turned on VTK_USE_GUISUPPORT and VTK_USE_QVTK). The configuration and installation worked painlessly but if I run Cmake with Qt references the compilation fails during the subsequent make process becaus...

C++ visualization toolkit recommendation for X11/OpenGL

hi I am looking for visualization framework, preferably that has simple interface for simple things, with C++ implementation. my requirements are very simple - plotting matrixes (as a debugging tool), so i do not really care about performance or appearance, and 2D is enough for me. i had used VTK under octave, and it worked pretty well...

VTK window thread from main thread, C++

hello, I am just learning VTK (and C++ GUI programming) and have hopefully simple question. The main application launches rendered window at some point in application. Would like to be able for the main thread to continue, while VTK window is displayed. Is there a particular method to launch VTK window as a thread? My environment is L...

Draw a multiple lines set with VTK

Can somebody point me in the right direction of how to draw a multiple lines that seem connected? I found vtkLine and its SetPoint1 and SetPoint2 functions. Then I found vtkPolyLine, but there doesn't seem to be any add, insert or set function for this. Same for vtkPolyVertex. Is there a basic function that allows me to just push some p...