-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
Open the Module_ Montage=ON and ITK_ WRAP_ PYTHON=ON option to compile. The compiled result does not support itk montage #3779
Comments
Thank you for contributing an issue! Welcome to the ITK community! We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. |
It is not clear what you are trying to accomplish. Do you just want to use an ITK build with RGB-US support? Do you want to compile wheels of that, and why? Why do you fiddle with manylinux scripts? Can you try a clean build? Configure a new build directory with Module_Montage=ON, ITK_WRAP_PYTHON=ON and ITK_WRAP_rgb_unsigned_short=ON. Are there any warnings or errors? |
I'm sorry, sir. My description above may not be clear enough. Please allow me to restate my question: I want to use ITK-Montage for image stitching. I encountered the problem of not supporting RGB US in the process of using it. Therefore, I want to recompile it and expect to get both ITK and ITK-Montage that support RGB US. My problem is that I compiled the ITK-5.2.1 version. In order to make the compiled ITK wheel integrate the content of the ITK-Montage, or get an ITK-Montage wheel, I used the Module_Montage=ON and ITK_WRAP_PYTHON=ON options. However, from the compilation results, I only got ITK related files, but not ITK-Montage related files (such as TileMergeImageFilter. py). This shows that only ITK was successfully compiled, but ITK-Montage was not automatically compiled The compilation methods I use are based on the following page: 3124 is compiled with cmake.exe under Windows, in which two options are added,Module_Montage=ON and ITK_WRAP_PYTHON=ON, so that the final result contains ITK and ITK-Montage, while I compile with cmakelist.txt under Linux, using the same options as 3124(Module_Montage=ON and ITK_WRAP_PYTHON=ON), but the final result only contains ITK but not ITK-Montage The compilation process did not report an error, but only got the wrong result. So I want to ask you to help me analyze where I might be wrong. Thank you very much for your reply! |
Build_ITK_Python_packages is the more complicated approach, meant for creating Python wheels for redistribution. The simpler approach is to build ITK with Python and your favorite remote modules locally, then copy |
A new version of Montage was released today, as part of ITK 5.3.0 release process. I also added a new issue to keep track of the need for RGBUS pixels, InsightSoftwareConsortium/ITKMontage#207. |
Thank you, sir.I will try this method again. |
OK, thank you very much! I will try these methods as soon as possible! |
Description
Hello, sir. I recently encountered the same problem as #3124, so I tried to compile my own version of itk on Linux. I compiled according to the method in question #3124 and opened the options Module_ Montage=ON ,ITK_ WRAP_ PYTHON=ON and TK_WRAP_rgb_unsigned_short=ON. Although the compiled results already support the data type itk. RGBPixel [itk. US], it seems that itk-montage has not been compiled at the same time.
I have contacted the questioner of question #3124. In fact, my compilation process is under his guidance. He compiles with cmake.exe on Windows, and I compile with my own cmakeList.txt on Linux. In addition, our method, the compiled itk version (5.2.1) and other conditions are the same, but different results are obtained.
The final results are as follows:
![image](https://user-images.githubusercontent.com/58067515/205096264-6976fbd7-10de-4e5a-8ac1-21bba09268f7.png)
![image](https://user-images.githubusercontent.com/58067515/205096520-12205597-aeb9-4121-b294-2766e36fe658.png)
![image](https://user-images.githubusercontent.com/58067515/205096995-62420a3f-6e51-4a73-ba93-6b74a8b2254f.png)
Results generated by previous questioners using cmake.exe on Windows
The results I generated with cmakelist.txt on Linux
Obviously, my method does not compile the following itk-montage related functions
The previous questioner was also unable to help me solve the problem, because we have the same options except for the operating system and the tools used, so we want to ask for your help.
The following are CMakeLists.txt and manylinux-build-wheels.sh files I wrote. I submitted the manylinux-build-wheels.sh file by the way, because I found that the compiled script essentially calls manylinux-build-wheels.sh for the final compilation. I opened the Module_ Montage=ON ,ITK_ WRAP_ PYTHON=ON and TK_WRAP_rgb_unsigned_short=ON options in CMakeLists.txt, In manylinux-build-wheels.sh, two options ITK_ WRAP_ PYTHON=ON and TK_WRAP_rgb_unsigned_short=ON are turned on (the reason why I didn't turn on the Module_ Montage=ON option is that I found that if I turned on it, an error would be reported when compiling).
cmake.zip
Could you check the contents of these two documents for me? Maybe there are other mistakes?
Thank you very much!
The text was updated successfully, but these errors were encountered: