Commit 9e42b76
committed
BUG: Fix warp filter exception and apply clang-format to src/
The ContinuousBorderWarpImageFilter incorrectly threw an
exception when TransformPhysicalPointToContinuousIndex returned
false (point outside image domain). Out-of-bounds points are
expected in warp operations — the subsequent clamping to boundary
indices provides the continuous-border behavior. This caused all
14 registration tests to fail with "Failed to warp moving image."
Also apply clang-format 19 to VariationalRegistrationMain.cxx
and win32_compatibility/getopt.h (lint CI failures).1 parent 05183ce commit 9e42b76
3 files changed
Lines changed: 25 additions & 17 deletions
File tree
- include
- src
- win32_compatibility
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
| 643 | + | |
| 644 | + | |
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
| |||
658 | 659 | | |
659 | 660 | | |
660 | 661 | | |
661 | | - | |
| 662 | + | |
| 663 | + | |
662 | 664 | | |
663 | 665 | | |
664 | 666 | | |
| |||
676 | 678 | | |
677 | 679 | | |
678 | 680 | | |
679 | | - | |
| 681 | + | |
| 682 | + | |
680 | 683 | | |
681 | 684 | | |
682 | 685 | | |
| |||
719 | 722 | | |
720 | 723 | | |
721 | 724 | | |
722 | | - | |
| 725 | + | |
| 726 | + | |
723 | 727 | | |
724 | 728 | | |
725 | 729 | | |
726 | 730 | | |
727 | 731 | | |
728 | | - | |
| 732 | + | |
| 733 | + | |
729 | 734 | | |
730 | 735 | | |
731 | 736 | | |
732 | 737 | | |
733 | 738 | | |
734 | | - | |
| 739 | + | |
| 740 | + | |
735 | 741 | | |
736 | 742 | | |
737 | 743 | | |
| |||
742 | 748 | | |
743 | 749 | | |
744 | 750 | | |
745 | | - | |
| 751 | + | |
| 752 | + | |
746 | 753 | | |
747 | 754 | | |
748 | 755 | | |
| |||
768 | 775 | | |
769 | 776 | | |
770 | 777 | | |
771 | | - | |
| 778 | + | |
| 779 | + | |
772 | 780 | | |
773 | 781 | | |
774 | 782 | | |
775 | | - | |
| 783 | + | |
| 784 | + | |
776 | 785 | | |
777 | 786 | | |
778 | 787 | | |
779 | 788 | | |
780 | 789 | | |
781 | | - | |
| 790 | + | |
| 791 | + | |
782 | 792 | | |
783 | 793 | | |
784 | 794 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments