vtk

Numpy uint8_t arrays to vtkImageData

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 20:51:24
问题 I am attempting to take 2D images of either one or three channels and display them in VTK using vtkImageActor . As I understand it, the current frame to be displayed can be updated by invoking SetImageData on vtkImageActor and providing an instance of vtkImageData . I have set up my visualiser as shown below. However, I am unsure how to build the vtkImageData object from the numpy arrays(this would go in the updateFrames method). The type of my numpy arrays is np.uint8_t . I am using VTK8.0,

Referencing an x64 dll file works in C# but does not work in F#

空扰寡人 提交于 2019-12-23 18:32:24
问题 I have created two brand new solutions using the latest VS 2010: C# console application F# console application I have referenced two x64 dll files: Kitware.VTK.dll and Kitware.mummy.Runtime.dll (can be downloaded here: http://www.kitware.com/products/avdownload.php ) The C# VS 2010 finds the namespace when I write using Kitware . The F# VS 2010 does not find the namespace when I write open Kitware . The x86 version works fine in F#. Any idea why is that and how to make the Kitware x64 work in

C++ CMake FLANN failing when building pcl in vs2012

社会主义新天地 提交于 2019-12-23 09:56:39
问题 Trying to build PCL on VS2012 in Windows 8.1 so I can attempt to integrate my Kinect for Windows v2 sensor with it, however I seem to be running into a bunch of CMake errors that I don't know what to do with. this is partially because I am not very familiar with CMake, and so I am following the tutorial here which outlines the building of dependencies using the CMake GUI. However, throughout this process I have found that the only things that have built properly are the ones I build using

C++ CMake FLANN failing when building pcl in vs2012

故事扮演 提交于 2019-12-23 09:53:42
问题 Trying to build PCL on VS2012 in Windows 8.1 so I can attempt to integrate my Kinect for Windows v2 sensor with it, however I seem to be running into a bunch of CMake errors that I don't know what to do with. this is partially because I am not very familiar with CMake, and so I am following the tutorial here which outlines the building of dependencies using the CMake GUI. However, throughout this process I have found that the only things that have built properly are the ones I build using

vtk6.3 link error:no override found for 'vtkRenderWindow'

依然范特西╮ 提交于 2019-12-23 05:49:05
问题 I hava built vtk6.3 with qt5.5 on ubuntu 64bit,and I open an example with qtcreator.Build it,then link error occur: Generic Warning: In /VTK/Rendering/Core/vtkRenderWindow.cxx, line 40 Error: no override found for 'vtkRenderWindow'. The line 40 with doc: //Use the vtkAbstractObjectFactoryNewMacro to allow the object factory overrides. vtkAbstractObjectFactoryNewMacro(vtkRenderWindow) I google for this problem,almost all explanation is about this link,it seems I must add this macro in my cpp

Cmake gui resets parameter. How do I set parameter in cmake gui?

笑着哭i 提交于 2019-12-23 05:13:08
问题 I am trying to build cmake after vtk has been built. I see that WITH_VTK is checked, so I try to change VTK_PATH inplace: Unfortunately I get this message VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK in log window and also the variable resets after pressing Configure or Generate . I tried to clear cache from File menu. And also tried to ' Add Entry '. Nothing helps. Is there any instruction how to set parameter in this beautifull app? 回答1: Ok, I've found

Constrained (Delaunay) Triangulation

人走茶凉 提交于 2019-12-23 04:59:12
问题 For a university project I need to implement a computer graphics paper that has been relased a couple of years ago. At one point, I need to triangulate the results I get from my simulation. I guess its easier to explain what I need looking at a picture contained within the paper: Let's say I already have got all the information it takes to reconstruct the contour lines that you can see in the second thumbnail. Using those I need to do some triangulation using those siluettes as constrains. I

pyqt and VTK : problem to connect slider to vtk object [duplicate]

时光总嘲笑我的痴心妄想 提交于 2019-12-23 04:52:26
问题 This question already has answers here : Why is PyQt connect() syntax so verbose? (3 answers) Closed last year . I'm dealing with some issues, using vtk in PyQt5. The problem is that I have a vtk sphere with an initial radius value and some sliders to connect to the sphere dans QLCD Numbers. Indeed, what I want is to have one of the sliders set at 128 at first dans when the user slide to change the value, this value will be displayed in the QLCDNumber and the current value of the slider will

`How to install and run `mayavi` by `pip3` with `vtk`?

落花浮王杯 提交于 2019-12-23 04:32:31
问题 My system is Ubuntu 16.04 and my Python version is 3.5. I have installed vtk 7.1.0 into /home/why/software/vtk/7.1.0/ with Python wrapper. Furthermore, I add the following line into .bashrc export PYTHONPATH=$PYTHONPATH:/home/why/software/vtk/7.1.0/lib/python3.5/site-packages And I can import vtk in ipython3 and use it normally. But when I install mayavi by sudo -H pip3 install mayavi I get the following error: Running setup.py bdist_wheel for mayavi ... error Complete output from command

Qt Creator + MITK (Linux)

人盡茶涼 提交于 2019-12-23 04:17:31
问题 I'm trying to use MITK with Qt Creator . I've successfully compiled and used VTK and ITK with ccmake. I've compiled MITK in superbuild mode (it downloads CTK, VTK, ITK, etc). Then I've configured it. I've compiled with make (About two hours). I've tried make install , but MITK doesn't work that way. With GDCM, ITK, VTK, I could find header files in /usr/local/include and shared libs in /usr/local/lib , so I included those in my .pro file in the Qt Creator project and start working. I've been