Giter Site home page Giter Site logo

midas-journal / midas-journal-784 Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 25.0 74.58 MB

ITK-Based Implementation of Two-Projection 2D/3D Registration Method with an Application in Patient Setup for External Beam Radiotherapy

Home Page: http://www.insight-journal.org/browse/publication/784

C++ 99.02% Shell 0.98%

midas-journal-784's People

Stargazers

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

Watchers

 avatar  avatar

midas-journal-784's Issues

ModuleNotFoundError: No module named '_itkSiddonJacobsRayCastInterpolateImageFunctionPython'

I am trying to change the code from ITKTwoProjectionRegistration/test/GetDRRSiddonJacobsRayTracing.cxx to python.

However, I am not sure how to import the itkSiddonJacobsRayCastInterpolateImageFunctionPython module in python.

So far, the error is coming from these lines of code :

from itk import itkSiddonJacobsRayCastInterpolateImageFunctionPython as siddon

// Create a ray casting interpolator
interpolator = siddon.itkSiddonJacobsRayCastInterpolateImageFunctionIF3D
// After I create the interpolator I can set all the values associated to it.
// I mean it is recognize by pycharm ( i.e. "interpolator." gives all the methods/atributes associated to // it"
interpolator.SetProjectionAngle(0)
interpolator.SetFocalPointToIsocenterDistance(1000) # Set source to isocenter distance in mm
interpolator.SetThreshold(0)

When I tried to execute the script , I got this error:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\PY\lib\site-packages\itk\itkSiddonJacobsRayCastInterpolateImageFunctionPython.py", line 22, in swig_import_helper
fp, pathname, description = imp.find_module('_itkSiddonJacobsRayCastInterpolateImageFunctionPython', [dirname(file)])
File "C:\ProgramData\Anaconda3\envs\PY\lib\imp.py", line 296, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_itkSiddonJacobsRayCastInterpolateImageFunctionPython

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "D:/selflearning/ITK/riddonTransform/GetDRRSiddonJacobsRayTracing", line 14, in
from itk import itkSiddonJacobsRayCastInterpolateImageFunctionPython as siddon
File "C:\ProgramData\Anaconda3\envs\PY\lib\site-packages\itk\itkSiddonJacobsRayCastInterpolateImageFunctionPython.py", line 32, in
_itkSiddonJacobsRayCastInterpolateImageFunctionPython = swig_import_helper()
File "C:\ProgramData\Anaconda3\envs\PY\lib\site-packages\itk\itkSiddonJacobsRayCastInterpolateImageFunctionPython.py", line 24, in swig_import_helper
import _itkSiddonJacobsRayCastInterpolateImageFunctionPython
ModuleNotFoundError: No module named '_itkSiddonJacobsRayCastInterpolateImageFunctionPython'

**I think that These packages installed in my environment are the relevant ones for this issue: **
itk 5.0.1 pypi_0 pypi
itk-core 5.0.1 pypi_0 pypi
itk-filtering 5.0.1 pypi_0 pypi
itk-numerics 5.0.1 pypi_0 pypi
itk-registration 5.0.1 pypi_0 pypi
itk-rtk 2.0.1 pypi_0 pypi
itk-segmentation 5.0.1 pypi_0 pypi
itk-twoprojectionregistration 1.0.1 pypi_0 pypi
simpleitk 1.2.2 py37ha925a31_0 simpleitk

What I am missing?

@hmjjohnson

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.