-
-
Notifications
You must be signed in to change notification settings - Fork 665
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Test NIFTI I/O with small voxels
Use new test data to ensure transforms are correctly handled when voxels are small. This covers a previous bug where the sform would not be read if the determinant of the sform matrix was < 1E-5. Update the test program used for the new test, and itkNiftiReadWriteDirectionTest, to conform to ITK coding style. Specifically, - Use modern ITK operations for I/O - Use the `itkNameOfTestExecutableMacro` macro to print the test name when the input argument count is insufficient. - Make the input argument checking message to comply with ITK convention. - Remove duplicate image type alias definition. - Remove unnecessary input argument duplicate in reader lambda function. - Use case change for variable names, start with lowercase, and avoid underscores. - Start method names with capitals. - Use the `ITK_TRY_EXPECT_NO_EXCEPTION` for statements that might trigger exceptions. - Print a message to mark the end of the test. - Descriptive error messages Co-authored-by: Philip Cook <cookpa@pennmedicine.upenn.edu> Co-authored-by: Jon Haitz Legarreta Gorroño <jon.haitz.legarreta@gmail.com>
- Loading branch information
Showing
5 changed files
with
53 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4bb35b1cd7fe4e8919f2fd200d70fb1a35fc4d2becf58e3092677bb6832292602dd6bf5b73cd8c2d85c1afabc4fb39d403d789ddd01b14539dc507c5a0e63e67 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4c31c4ae8f7ca016996ca59f77d7b6b3db9c8518ffaa56ec64c3a7725a4d444442e78442827e949e2158f50457c6dec35e1061e4d5cd17ac4fc15fbd485575ae |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d7446020071253470c450a725e9756d29eee3d7b19080275a322a0aa6b394cce106935de6a61e94cbcb4aa30dce046e502801c45d564b81dc195cebe77feceb3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters