# Latest

**URL:** https://discourse.vtk.org/latest.md?page=195

[Latest](https://discourse.vtk.org/latest.md) · [Categories](https://discourse.vtk.org/categories.md) · [Tags](https://discourse.vtk.org/tags.md)

**Page:** 196

---

## [Convert DICOM data into array (unsigned short \*voxels)](https://discourse.vtk.org/t/convert-dicom-data-into-array-unsigned-short-voxels/4510)

<div class="topic-metadata">

**Author:** [@Tim\_M](https://discourse.vtk.org/u/Tim_M)\
**Replies:** 0\
**Last updated:** [October 28, 2020, 7:01pm UTC](https://discourse.vtk.org/t/convert-dicom-data-into-array-unsigned-short-voxels/4510 "2020-10-28T19:01:50Z")

</div>

Hi All, I had DICOM data (\*.dcm) files, and I need to get image array data in unsigned short \* format. Is it possible, and how?

---

## [Direction of X, Y and Z axis in DICOM patient coordinates](https://discourse.vtk.org/t/direction-of-x-y-and-z-axis-in-dicom-patient-coordinates/4477)

<div class="topic-metadata">

**Author:** [@Tim\_M](https://discourse.vtk.org/u/Tim_M)\
**Replies:** 2\
**Last updated:** [October 28, 2020, 6:42pm UTC](https://discourse.vtk.org/t/direction-of-x-y-and-z-axis-in-dicom-patient-coordinates/4477 "2020-10-28T18:42:35Z")

</div>

Hi All, I am developing DICOM Viewer with help of VTK/ITK and for one 3D model I need from DICOM data (dcm files) to get Direction of X, Y and Z-axis in DICOM patient coordinates. For this purpose I believe I will need…

---

## [VTK Crash on startup with CLR](https://discourse.vtk.org/t/vtk-crash-on-startup-with-clr/4507)

<div class="topic-metadata">

**Author:** [@RKeene](https://discourse.vtk.org/u/RKeene)\
**Replies:** 0\
**Last updated:** [October 28, 2020, 3:33pm UTC](https://discourse.vtk.org/t/vtk-crash-on-startup-with-clr/4507 "2020-10-28T15:33:49Z")

</div>

I have a Visual C++ program, Visual Studio 2019, WinForms and am trying to add in VTK. I have two projects. One is the CLR project that does the WinForm UI called ORIScanUI, and a second project that does the unmanaged c…

---

## [Writing Polydata including its colour to file](https://discourse.vtk.org/t/writing-polydata-including-its-colour-to-file/4389)

<div class="topic-metadata">

**Author:** [@Seun](https://discourse.vtk.org/u/Seun)\
**Replies:** 6\
**Last updated:** [October 28, 2020, 12:38pm UTC](https://discourse.vtk.org/t/writing-polydata-including-its-colour-to-file/4389 "2020-10-28T12:38:59Z")

</div>

Hi everyone, I was wondering how one could write a polydata including its colour to file. For instance I understand that polydata’s do not intrinsically hold information about their colour, well unless one includes this…

---

## [How to understand binary DataArray in xml vtk output](https://discourse.vtk.org/t/how-to-understand-binary-dataarray-in-xml-vtk-output/4489)

<div class="topic-metadata">

**Author:** [@qzxuhui](https://discourse.vtk.org/u/qzxuhui)\
**Replies:** 4\
**Last updated:** [October 27, 2020, 5:36pm UTC](https://discourse.vtk.org/t/how-to-understand-binary-dataarray-in-xml-vtk-output/4489 "2020-10-27T17:36:35Z")

</div>

Hello everyone, I have a problem with how to understand the binary DataArray. The manual said if the format of DataArray is binary, The data are encoded in base64 and listed contiguously inside the DataArray element. D…

---

## [vtkLookupTable range max + eps](https://discourse.vtk.org/t/vtklookuptable-range-max-eps/4491)

<div class="topic-metadata">

**Author:** [@Nil](https://discourse.vtk.org/u/Nil)\
**Replies:** 9\
**Last updated:** [October 27, 2020, 3:15pm UTC](https://discourse.vtk.org/t/vtklookuptable-range-max-eps/4491 "2020-10-27T15:15:09Z")

</div>

I’m using a LUT in my application since vtk6 and I had to add (probably in vtk8) if data.dtype == np.float32 or data.dtype == np.float64: table.SetRange(np.min(data), np.max(data) + 0.00001) else: table.SetRange…

---

## [Page about vtkSmartPointer](https://discourse.vtk.org/t/page-about-vtksmartpointer/4449)

<div class="topic-metadata">

**Author:** [@dsemikin](https://discourse.vtk.org/u/dsemikin)\
**Replies:** 12\
**Last updated:** [October 27, 2020, 2:21pm UTC](https://discourse.vtk.org/t/page-about-vtksmartpointer/4449 "2020-10-27T14:21:06Z")

</div>

Hi Everyone, As I start learning VTK, I decided to collect together things about VTK smart poitners, which I found to be not obvious in the official tutorial. The page is available here: https://github.com/DmitrySemiki…

---

## [Retrieving the Colours from a vtkProbeFilter result.](https://discourse.vtk.org/t/retrieving-the-colours-from-a-vtkprobefilter-result/4497)

<div class="topic-metadata">

**Author:** [@Seun](https://discourse.vtk.org/u/Seun)\
**Replies:** 0\
**Last updated:** [October 27, 2020, 1:39pm UTC](https://discourse.vtk.org/t/retrieving-the-colours-from-a-vtkprobefilter-result/4497 "2020-10-27T13:39:03Z")

</div>

Hello everyone, I’m a bit confused figuring this out, I’ve got a vtkProbeFilter am working with. I have its input data set to a polydata (that has points, strips and normals only), and its source connection from the out…

---

## [Visualization on the web Webinar](https://discourse.vtk.org/t/visualization-on-the-web-webinar/4416)

<div class="topic-metadata">

**Author:** [@finetjul](https://discourse.vtk.org/u/finetjul)\
**Replies:** 6\
**Last updated:** [October 27, 2020, 11:10am UTC](https://discourse.vtk.org/t/visualization-on-the-web-webinar/4416 "2020-10-27T11:10:05Z")

</div>

Are you ready to join Kitware’s next free Webinar about web visualization tools ? This webinar will happen this October and be focused on presenting Kitware’s open-source web libraries, frameworks and apps such as VTK.…

---

## [vtkImplicitPlaneWidget2](https://discourse.vtk.org/t/vtkimplicitplanewidget2/3177)

<div class="topic-metadata">

**Author:** [@Synfony](https://discourse.vtk.org/u/Synfony)\
**Replies:** 2\
**Last updated:** [October 27, 2020, 7:22am UTC](https://discourse.vtk.org/t/vtkimplicitplanewidget2/3177 "2020-10-27T07:22:04Z")

</div>

Hello everyone, I am using the vtkImplicitPlaneWidget2. But, I need to remove the arrow handle. How do I remove the arrow handle? I could not find any single method in the vtkImplicitPlaneWidget2 and vtkImplicitPlaneR…

---

## [How to change the transform of vtkImagePlaneWidget in the world coordinate](https://discourse.vtk.org/t/how-to-change-the-transform-of-vtkimageplanewidget-in-the-world-coordinate/4495)

<div class="topic-metadata">

**Author:** [@yuhuimoon](https://discourse.vtk.org/u/yuhuimoon)\
**Replies:** 0\
**Last updated:** [October 27, 2020, 7:02am UTC](https://discourse.vtk.org/t/how-to-change-the-transform-of-vtkimageplanewidget-in-the-world-coordinate/4495 "2020-10-27T07:02:32Z")

</div>

Hi everyone, I use vtkImagePlaneWidget to build MPR for 3D image volume. I want to change the transform of the three planes in the world coordinate. I found the functions like Push(), Rotate() and Translate() are design…

---

## [vtkImageData rendering disappears when viewed from z-axis.](https://discourse.vtk.org/t/vtkimagedata-rendering-disappears-when-viewed-from-z-axis/4480)

<div class="topic-metadata">

**Author:** [@Velchivz](https://discourse.vtk.org/u/Velchivz)\
**Replies:** 6\
**Last updated:** [October 27, 2020, 12:00am UTC](https://discourse.vtk.org/t/vtkimagedata-rendering-disappears-when-viewed-from-z-axis/4480 "2020-10-27T00:00:54Z")

</div>

When I have an image placed exactly in the XY plane, and I view it from the z-axis. It disappears if there is nothing else in the scene. If I add some other actor, then it does render it. What I’ve noticed is that if I z…

---

## [Wait until vtkDicomImageReader output data is available](https://discourse.vtk.org/t/wait-until-vtkdicomimagereader-output-data-is-available/4459)

<div class="topic-metadata">

**Author:** [@geho](https://discourse.vtk.org/u/geho)\
**Replies:** 13\
**Last updated:** [October 25, 2020, 3:58pm UTC](https://discourse.vtk.org/t/wait-until-vtkdicomimagereader-output-data-is-available/4459 "2020-10-25T15:58:52Z")

</div>

Hi, I’m using vtkDicomImageReader to read a DICOM volume, and then accessing properties of the DICOM volume, like this: reader-\>SetDirectoryName("/path"); reader-\>Update(); reader-\>GetOutput()-\>GetSpacing(spacing); I…

---

## [How to convert coordinates from physical space (xyz) to index space (ijk) by VTK api](https://discourse.vtk.org/t/how-to-convert-coordinates-from-physical-space-xyz-to-index-space-ijk-by-vtk-api/3037)

<div class="topic-metadata">

**Author:** [@yuhuimoon](https://discourse.vtk.org/u/yuhuimoon)\
**Replies:** 2\
**Last updated:** [October 25, 2020, 11:48am UTC](https://discourse.vtk.org/t/how-to-convert-coordinates-from-physical-space-xyz-to-index-space-ijk-by-vtk-api/3037 "2020-10-25T11:48:47Z")

</div>

I want to Convert coordinates from physical space (xyz) to index space (ijk). In VTK9.0.0, I find vtkImageData::TransformPhysicalPointToContinuousIndex() recently added can get what I want. But is there any way to get t…

---

## [Difference between vtkStructuredPoints and vtkStructuredPointsReader?](https://discourse.vtk.org/t/difference-between-vtkstructuredpoints-and-vtkstructuredpointsreader/1247)

<div class="topic-metadata">

**Author:** [@Jesper\_Henriksen](https://discourse.vtk.org/u/Jesper_Henriksen)\
**Replies:** 3\
**Last updated:** [October 25, 2020, 6:28am UTC](https://discourse.vtk.org/t/difference-between-vtkstructuredpoints-and-vtkstructuredpointsreader/1247 "2020-10-25T06:28:49Z")

</div>

Hi, I need a way to transform a vtkStructuredPoints into a vtkAlgorithmOutput I have a problem using the streamtracer. When I load vector information using the vtkStructuredPointsReader, I can set the SetInputConnect…

---

## [how to generate the curved planar reformation image?](https://discourse.vtk.org/t/how-to-generate-the-curved-planar-reformation-image/4467)

<div class="topic-metadata">

**Author:** [@NeuZhangQiang](https://discourse.vtk.org/u/NeuZhangQiang)\
**Replies:** 5\
**Last updated:** [October 25, 2020, 1:56am UTC](https://discourse.vtk.org/t/how-to-generate-the-curved-planar-reformation-image/4467 "2020-10-25T01:56:20Z")

</div>

I wonder whether there is vtk implement to generate the curved planar reformation (CPR) image? Any suggestion is appreciated!

---

## [How to pass parameter to vtkCommand and subclasses the "eventId" and "callData" parameter?](https://discourse.vtk.org/t/how-to-pass-parameter-to-vtkcommand-and-subclasses-the-eventid-and-calldata-parameter/4476)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [October 24, 2020, 7:56pm UTC](https://discourse.vtk.org/t/how-to-pass-parameter-to-vtkcommand-and-subclasses-the-eventid-and-calldata-parameter/4476 "2020-10-24T19:56:46Z")

</div>

\#include \<vtkSmartPointer.h\> #include \<vtkObjectFactory.h\> #include \<vtkSphereSource.h\> #include \<vtkPolyDataMapper.h\> #include \<vtkActor.h\> #include \<vtkRenderWindow.h\> #include \<vtkRenderer.h\> #include \<vtkRende…

---

## [Error in Writing to a VTU image](https://discourse.vtk.org/t/error-in-writing-to-a-vtu-image/4361)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 9\
**Last updated:** [October 23, 2020, 5:15pm UTC](https://discourse.vtk.org/t/error-in-writing-to-a-vtu-image/4361 "2020-10-23T17:15:36Z")

</div>

Dear All, I am trying to write to a VTU file from one example and it is giving the errors of the image. Can you please inform me how to initialize such variables? Thanks, Luis Gonçalves

---

## [Issue regarding the ResampleToImage Filter for FE mesh](https://discourse.vtk.org/t/issue-regarding-the-resampletoimage-filter-for-fe-mesh/4478)

<div class="topic-metadata">

**Author:** [@isuruwi](https://discourse.vtk.org/u/isuruwi)\
**Replies:** 0\
**Last updated:** [October 23, 2020, 1:57pm UTC](https://discourse.vtk.org/t/issue-regarding-the-resampletoimage-filter-for-fe-mesh/4478 "2020-10-23T13:57:45Z")

</div>

I have created a volumetric mesh using gmsh toolkit. It has a an ellipsoid inside of a box. I have used two physical groups one is to hold the data for the liver and the other group is to hold the whole 3D volumetric mes…

---

## [Proposal to change double click event vtk mapping](https://discourse.vtk.org/t/proposal-to-change-double-click-event-vtk-mapping/4120)

<div class="topic-metadata">

**Author:** [@Davide\_Punzo](https://discourse.vtk.org/u/Davide_Punzo)\
**Replies:** 10\
**Last updated:** [October 22, 2020, 10:51pm UTC](https://discourse.vtk.org/t/proposal-to-change-double-click-event-vtk-mapping/4120 "2020-10-22T22:51:14Z")

</div>

Hi all, for 3DSlicer we use different mapping for double clicks in the QVTKInteractor: we differentiate single and double click events, i.e We would like to merge this PR in vtk upstream since @jcfr is updating the S…

---

## [Building in Visual Studio 2019](https://discourse.vtk.org/t/building-in-visual-studio-2019/4474)

<div class="topic-metadata">

**Author:** [@DavidChipman](https://discourse.vtk.org/u/DavidChipman)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 10:30pm UTC](https://discourse.vtk.org/t/building-in-visual-studio-2019/4474 "2020-10-22T22:30:03Z")

</div>

I reciieved many errors when attempting to open the Solution in Visual Studio 2019, after generating the files in CMAke. I have the many error messages in a text file.

---

## [Customs shaders with vtk actors in VTK 8.2.0](https://discourse.vtk.org/t/customs-shaders-with-vtk-actors-in-vtk-8-2-0/4469)

<div class="topic-metadata">

**Author:** [@Fractal4Fun](https://discourse.vtk.org/u/Fractal4Fun)\
**Replies:** 2\
**Last updated:** [October 22, 2020, 7:41pm UTC](https://discourse.vtk.org/t/customs-shaders-with-vtk-actors-in-vtk-8-2-0/4469 "2020-10-22T19:41:13Z")

</div>

Hello, I’m a student trying to get in touch with shaders applied to vtk actors. Since kitware is cryptic about the topic I’m trying to get the same results as the following tutorial with vtk 8.2.0 and C++ : http://noesk…

---

## [vtkBinnedDecimation](https://discourse.vtk.org/t/vtkbinneddecimation/4463)

<div class="topic-metadata">

**Author:** [@OdedSudarsky](https://discourse.vtk.org/u/OdedSudarsky)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 4:50am UTC](https://discourse.vtk.org/t/vtkbinneddecimation/4463 "2020-10-22T04:50:06Z")

</div>

vtkBinnedDecimation is claimed to be a polygon mesh decimator with similar results to vtkQuadricClustering, but much faster and with a smaller memory footprint. It already appears in documentation (https://vtk.org/doc/ni…

---

## [Interest in GPU image processing pipeline](https://discourse.vtk.org/t/interest-in-gpu-image-processing-pipeline/535)

<div class="topic-metadata">

**Author:** [@Sunderlandkyl](https://discourse.vtk.org/u/Sunderlandkyl)\
**Replies:** 16\
**Last updated:** [October 21, 2020, 2:46pm UTC](https://discourse.vtk.org/t/interest-in-gpu-image-processing-pipeline/535 "2020-10-21T14:46:02Z")

</div>

Hi all, We have several 3D Slicer related projects which require the use of fast multi-pass GPU-based algorithms. vtkOpenGLImageAlgorithmHelper can be used for this, but it requires that the textures are read back into …

---

## [Problems when installing VTK with Qt modules](https://discourse.vtk.org/t/problems-when-installing-vtk-with-qt-modules/4461)

<div class="topic-metadata">

**Author:** [@Ruf](https://discourse.vtk.org/u/Ruf)\
**Replies:** 3\
**Last updated:** [October 21, 2020, 2:28pm UTC](https://discourse.vtk.org/t/problems-when-installing-vtk-with-qt-modules/4461 "2020-10-21T14:28:52Z")

</div>

Hello everybody, this is the first time I ask for help here, first of all, thanks in advance. Until recently, I have been working with VTK for my end-of-grade work without any problems. All the development with this too…

---

## [What possibilities do I have with vtk to catch errors?](https://discourse.vtk.org/t/what-possibilities-do-i-have-with-vtk-to-catch-errors/4453)

<div class="topic-metadata">

**Author:** [@Daniel](https://discourse.vtk.org/u/Daniel)\
**Replies:** 7\
**Last updated:** [October 21, 2020, 2:19pm UTC](https://discourse.vtk.org/t/what-possibilities-do-i-have-with-vtk-to-catch-errors/4453 "2020-10-21T14:19:10Z")

</div>

Hi there, i am currently developing a small Java program on Windows. It uses a slider, which draws the respective visible layer by an ImageData-Object. Every time the slider is changed, the layer of a vtkImageSlice is…

---

## [vtk for Python: nii.gz image in 3D reconstruction but no options to set colors](https://discourse.vtk.org/t/vtk-for-python-nii-gz-image-in-3d-reconstruction-but-no-options-to-set-colors/4451)

<div class="topic-metadata">

**Author:** [@lihanhu](https://discourse.vtk.org/u/lihanhu)\
**Replies:** 4\
**Last updated:** [October 21, 2020, 8:31am UTC](https://discourse.vtk.org/t/vtk-for-python-nii-gz-image-in-3d-reconstruction-but-no-options-to-set-colors/4451 "2020-10-21T08:31:53Z")

</div>

I did a cell segmentation program, and the results of the segmentation were marked. But in 3D reconstruction, I don’t know how to mark the result I marked with different colors and color the target object. :frowning:

---

## [QVTKOpenGLNativeWidget render artefact when printing](https://discourse.vtk.org/t/qvtkopenglnativewidget-render-artefact-when-printing/4441)

<div class="topic-metadata">

**Author:** [@drpeterfranz](https://discourse.vtk.org/u/drpeterfranz)\
**Replies:** 7\
**Last updated:** [October 21, 2020, 4:11am UTC](https://discourse.vtk.org/t/qvtkopenglnativewidget-render-artefact-when-printing/4441 "2020-10-21T04:11:19Z")

</div>

I am trying to “print” a QVTKOpenGLNativeWidget to a pdf. To achieve this I simply use w-\>render(painter); where w is a QVTKOpenGLNativeWidget and the painter has been created using QPainter painter(dlg.printer())…

---

## [How to make vtkLineSource into vtkImageData?](https://discourse.vtk.org/t/how-to-make-vtklinesource-into-vtkimagedata/4444)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 3\
**Last updated:** [October 20, 2020, 2:15am UTC](https://discourse.vtk.org/t/how-to-make-vtklinesource-into-vtkimagedata/4444 "2020-10-20T02:15:07Z")

</div>

How to make vtkLineSource into vtkImageData? Or how to convert vtkPolyData into vtkImageData? Now I want to line in volume data of vtkImageData type.

---

## [Wrapper with VTK-9.0.1 is not generating xml files](https://discourse.vtk.org/t/wrapper-with-vtk-9-0-1-is-not-generating-xml-files/4447)

<div class="topic-metadata">

**Author:** [@abrahamperez](https://discourse.vtk.org/u/abrahamperez)\
**Replies:** 2\
**Last updated:** [October 19, 2020, 8:19pm UTC](https://discourse.vtk.org/t/wrapper-with-vtk-9-0-1-is-not-generating-xml-files/4447 "2020-10-19T20:19:14Z")

</div>

Later than replace VTK\_INCLUDE\_DIRS instead of VTK\_USE\_FILE, CMake is not generating the xml files Some idea?

[Previous page](https://discourse.vtk.org/latest.md?page=194)

[Next page](https://discourse.vtk.org/latest.md?page=196)
