Giter Club home page Giter Club logo

itkvtkglue's Introduction

ITKVTKGlue

This module contains classes that bridge ITK image processing and VTK visualization pipelines.

ITK is an open-source, cross-platform library that provides developers with an extensive suite of software tools for image analysis. VTK enables visualization of images in three dimension. This module converts ITK and VTK image data structures in a processing pipelining without copying the pixel buffer.

For examples, see:

itkvtkglue's People

Contributors

dzenanz avatar hjmjohnson avatar jcfr avatar jhlegarreta avatar thewtex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

itkvtkglue's Issues

ImageToVTKImageFilter does not work

Using pip install itk-vtkglue
Tried with both python2 and python3, the following line kills the process:
itkToVtkFilter = itk.ImageToVTKImageFilter.New()

Example throws exception

Hello everyone,

https://itk.org/ITKExamples/src/Segmentation/LevelSetsv4Visualization/VisualizeEvolvingDense2DLevelSetZeroSet/Documentation.html

can't make this example work as there seems to be a problem with the visualizer. The input data can be read without any problems but within the line "visualizer->SetInputImage(input);" the program leads to the following exception:

Exception thrown at 0x000007FEC5A0D998 (ucrtbased.dll) in HelloWorld.exe: 0xC0000005: Access violation reading location 0x0000000000000001. occurred

Would be very kind to check if this example contains a bug as a colleague is experiencing the same behaviour.

exc2

Unknown CMake command "itk_module_add_library".

I try to glue together ITK4.10 and VTK from 9f8ec53e651644e9352e00f564adc5f4ffe3eab9.
When I configure the project with Cmake (3.15.3) I get the following error:

Unknown CMake command "itk_module_add_library".
image

Is there something I am missing out? Doesn't ITKVtkGlue work with older versions?

Recompiling ITK after compiling ITKVtkGlue

I am getting the following error message when trying to recompile ITK after having compiled ITKVtkGlue as a separate project:

/home/francois.budin/devel/itk/ITK/build/Wrapping/Modules/ITKVTK/itkVTKImageImportPython.cpp:4609:10: fatal error: vtkImageImport.h: No such file or directory
 #include "vtkImageImport.h"
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
Wrapping/Modules/ITKVTK/CMakeFiles/ITKVTKPython.dir/build.make:295: recipe for target 'Wrapping/Modules/ITKVTK/CMakeFiles/ITKVTKPython.dir/itkVTKImageImportPython.cpp.o' failed
make[2]: *** [Wrapping/Modules/ITKVTK/CMakeFiles/ITKVTKPython.dir/itkVTKImageImportPython.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/francois.budin/devel/itk/ITK/build/Wrapping/Modules/ITKVTK/itkVTKImageExportPython.cpp:4566:10: fatal error: vtkImageImport.h: No such file or directory
 #include "vtkImageImport.h"
          ^~~~~~~~~~~~~~~~~~
compilation terminated.

This could be related to the fact that ITKVtkGlue is both inside and outside the ITK repository.

Errors with itk-vtkglue

Description

Python errors when trying the reproduce itk-vtkglue examples,

Steps to Reproduce

With python 3.6

  1. pip install itk=5.0.1
  2. pip install vtk=8.1.2
  3. pip install itk-vtkglue=0.3.0
  4. Run example in official documentation

Expected behavior

No error

Actual behavior

At line vtkToItkFilter.Update():

Traceback (most recent call last):
File "", line 1, in
RuntimeError: c:\p\ipp\standalone-build\itks\modules\bridge\vtk\include\itkVTKImageImport.hxx:265:
itk::ERROR: VTKImageToImageFilter(000001F64502C730): Cannot convert a VTK image to an ITK image of dimension 2 since the VTK image direction matrix element at (0,2) is not equal to 0.0:
I J K
X 4.24048e+175, 2.42715e-312, 4.24048e+175
Y 6.32576e-310, 4.24048e+175, 9.65104e-315
Z 4.24048e+175, 2.19481e-312, 9.08669e+223
This means that the K data axis has a X component in physical space, but the ITK image can only represent values along IJ projected
on XY.

Reproducibility

Tried only on 1 machine

Versions

python=3.6
itk=5.0.1
vtk=8.1.2
itk-vtkglue=0.3.0

Environment

Windows 10, 64 bits

Additional Information

Errors also with 3D images:

RuntimeError: c:\p\ipp\standalone-build\itks\modules\bridge\vtk\include\itkVTKImageImport.hxx:282:
itk::ERROR: VTKImageToImageFilter(00000196F6218070): Input number of components is 0 but should be 1

Building ITKVtkGlue runs into ITKModuleExternal not found

Hi!

I am trying to build ITKVtkGlue from scratch but I am running into error. When I run the setup.py by building the ITKVtkGlue, it runs into CMake error shows that:

CMake Error at CMakeLists.txt:205 (include): include could not find requested file: ITKModuleExternal

I have built ITK with C++ version 5.3.0 and my operating system is Ubuntu 22.04.3 LTS.
How to solve this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.