-
Notifications
You must be signed in to change notification settings - Fork 145
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
rtk::Reg1DExtractShroudSignalImageFilter is not wrapped #506
Comments
Hello, I am trying to extract the breathing signal from a shroud image in python, which would need the function rtk.Reg1DExtractShroudSignalImageFilter. Is this issue easily solvable or should I instead look at implementing a solution outside of the ITK/RTK framework ? Best, |
It is a bit hard to anticipate but you can give it a try. Are you able to wrap ITK with RTK on your computer? If yes, then rename nowrap to wrap and check what is the issue. We can help to address it... Maybe @arobert01 knows what is the issue with 1D images in ITK wrapping. |
To be honest, I don't know how to do that... I have just installed the itk-rtk python package with pip, but I can try to do it if I have some instructions. |
You need to check ITK's software guide on how to compile. In the cmake compilation options, activate python and the RTK module. Here is a script I use SRCBUILDDIR=build
NTHREADS=$(grep -c processor /proc/cpuinfo)
SCRIPT_PATH=$(realpath $(dirname $0))
BUILD_DIR=$SCRIPT_PATH/${SRCBUILDDIR}-PythonWrapping
INSTALL_PATH=${BUILD_DIR}-install
BINDINGS_PATH=${BUILD_DIR}-bindings
PATH=/home/srit/Downloads/cuda116/bin:$PATH
if ! test -e $BUILD_DIR
then
mkdir $BUILD_DIR
fi
cd $BUILD_DIR
cmake $SCRIPT_PATH/itk \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=OFF \
-DITK_WRAP_PYTHON=ON \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PATH \
-DModule_RTK:BOOL=ON \
-DModule_RTK_GIT_TAG="" \
-DModule_CudaCommon:BOOL=ON \
-DModule_CudaCommon_GIT_TAG="" \
-DRTK_USE_CUDA:BOOL=ON \
-DRTK_BUILD_APPLICATIONS:BOOL=OFF \
-DPY_SITE_PACKAGES_PATH:STRING=${BINDINGS_PATH} \
-DITK_WRAP_unsigned_short:BOOL=ON \
-DITK_WRAP_double:BOOL=ON \
-DITK_WRAP_complex_double:BOOL=ON \
-DITK_WRAP_IMAGE_DIMS:STRING="2;3;4"
make -k -j${NTHREADS} install |
I was able to configure+generate with CMake (I used the options mentioned above with the exception of DITK_WRAP_IMAGE_DIMS:STRING="2;3;4". I instead added DITK_WRAP_IMAGE_DIMS:STRING="1;2;3;4" in the hope it would help with this issue). But when I try to build the project in Visual Studio, I am getting a lot of errors (see text file). |
There is currently a nowrap file but more work than renaming is probably required to have it wrapped.
The text was updated successfully, but these errors were encountered: