Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deformation Field calculation not possible with procedural method of Transformix #73

Closed
ViktorvdValk opened this issue Oct 5, 2020 · 3 comments
Assignees
Projects

Comments

@ViktorvdValk
Copy link
Collaborator

No description provided.

@ViktorvdValk ViktorvdValk added this to To Do in Roadmap Oct 5, 2020
@ViktorvdValk ViktorvdValk moved this from To Do to In Progress in Roadmap Nov 9, 2020
@ViktorvdValk ViktorvdValk self-assigned this Nov 9, 2020
@thewtex
Copy link
Member

thewtex commented Nov 9, 2020

It may be helpful to create these functions in a separate .py file.

The functions can be injected into the packaged Python module by adding CMake code after line 2 here:

set(WRAPPER_SWIG_LIBRARY_FILES ${WRAPPER_SWIG_LIBRARY_FILES} "${CMAKE_CURRENT_SOURCE_DIR}/stdParameterMapFileNameVector.i")

that reads the code from the file with CMake's file(READ [...].

https://cmake.org/cmake/help/latest/command/file.html

then adding the file's content to the ITK_WRAP_PYTHON_LIBRARY_IMPORTS variable. For example:

file(READ ${CMAKE_CURRENT_SOURCE_DIR}/extra_functions.py extra_functions)
set(ITK_WRAP_PYTHON_LIBRARY_IMPORTS "${extra_functions}\n${ITK_WRAP_PYTHON_LIBRARY_IMPORTS}")

@thewtex
Copy link
Member

thewtex commented Nov 10, 2020

xref #82

Roadmap automation moved this from In Progress to Done Nov 17, 2020
@ViktorvdValk
Copy link
Collaborator Author

temporary fix, still uses Disk IO, works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Roadmap
  
Done
Development

No branches or pull requests

2 participants