-
Notifications
You must be signed in to change notification settings - Fork 1
ENH: Remove docstrings on itk.Image axis ordering. Remove ANTS option. #66
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -53,22 +53,22 @@ | |||||||||||||||||||||||||||||||||||||
| num_files = len(files) | ||||||||||||||||||||||||||||||||||||||
| reference_image_num = num_files // 2 | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| # Registration parameters - only ANTs for quick run | ||||||||||||||||||||||||||||||||||||||
| registration_methods = ["ANTS", "ICON", "ANTS_ICON"] | ||||||||||||||||||||||||||||||||||||||
| number_of_iterations_list = [[8, 4, 1], 5, [[8, 4, 1], 5]] # For ANTs and ICON | ||||||||||||||||||||||||||||||||||||||
| # Registration parameters - only Greedy for quick run | ||||||||||||||||||||||||||||||||||||||
| registration_methods = ["Greedy", "ICON", "Greedy_ICON"] | ||||||||||||||||||||||||||||||||||||||
| number_of_iterations_list = [[8, 4, 1], 5, [[8, 4, 1], 5]] # For Greedy and ICON | ||||||||||||||||||||||||||||||||||||||
| else: | ||||||||||||||||||||||||||||||||||||||
| print("=== FULL RUN MODE ===") | ||||||||||||||||||||||||||||||||||||||
| num_files = len(files) | ||||||||||||||||||||||||||||||||||||||
| files_indx = list(range(num_files)) | ||||||||||||||||||||||||||||||||||||||
| reference_image_num = 7 | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| # Registration parameters - both ANTs and ICON for full run | ||||||||||||||||||||||||||||||||||||||
| registration_methods = ["ANTS"] # , "ICON", "ANTS_ICON"] | ||||||||||||||||||||||||||||||||||||||
| # Registration parameters - Greedy and ICON for full run | ||||||||||||||||||||||||||||||||||||||
| registration_methods = ["Greedy"] # , "ICON", "Greedy_ICON"] | ||||||||||||||||||||||||||||||||||||||
| number_of_iterations_list = [ | ||||||||||||||||||||||||||||||||||||||
| [30, 15, 7, 3], | ||||||||||||||||||||||||||||||||||||||
| ] # For ANTs | ||||||||||||||||||||||||||||||||||||||
| ] # For Greedy | ||||||||||||||||||||||||||||||||||||||
| # 20, # For ICON | ||||||||||||||||||||||||||||||||||||||
| # [[30, 15, 7, 3], 20], # For ANTS_ICON | ||||||||||||||||||||||||||||||||||||||
| # [[30, 15, 7, 3], 20], # For Greedy_ICON | ||||||||||||||||||||||||||||||||||||||
| # ] | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+65
to
72
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update comment to match the active registration methods. The comment mentions "Greedy and ICON for full run" but only 📝 Suggested fix- # Registration parameters - Greedy and ICON for full run
+ # Registration parameters - Greedy for full run (ICON options commented out)
registration_methods = ["Greedy"] # , "ICON", "Greedy_ICON"]📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| # Common parameters | ||||||||||||||||||||||||||||||||||||||
|
|
@@ -144,12 +144,12 @@ | |||||||||||||||||||||||||||||||||||||
| registrar.set_fixed_image(fixed_image) | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| # Set iterations based on registration method | ||||||||||||||||||||||||||||||||||||||
| if registration_method == "ANTS": | ||||||||||||||||||||||||||||||||||||||
| registrar.set_number_of_iterations_ANTS(number_of_iterations) | ||||||||||||||||||||||||||||||||||||||
| if registration_method == "Greedy": | ||||||||||||||||||||||||||||||||||||||
| registrar.set_number_of_iterations_greedy(number_of_iterations) | ||||||||||||||||||||||||||||||||||||||
| elif registration_method == "ICON": | ||||||||||||||||||||||||||||||||||||||
| registrar.set_number_of_iterations_ICON(number_of_iterations) | ||||||||||||||||||||||||||||||||||||||
| elif registration_method == "ANTS_ICON": | ||||||||||||||||||||||||||||||||||||||
| registrar.set_number_of_iterations_ANTS(number_of_iterations[0]) | ||||||||||||||||||||||||||||||||||||||
| elif registration_method == "Greedy_ICON": | ||||||||||||||||||||||||||||||||||||||
| registrar.set_number_of_iterations_greedy(number_of_iterations[0]) | ||||||||||||||||||||||||||||||||||||||
| registrar.set_number_of_iterations_ICON(number_of_iterations[1]) | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| # Perform registration | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify comment to match the actual registration methods list.
The comment says "only Greedy for quick run" but line 57 includes
["Greedy", "ICON", "Greedy_ICON"], which is more than just Greedy.📝 Suggested fix
🤖 Prompt for AI Agents