Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Casting negative numbers to unsigned char error
Casting negative numbers to unsigned char is an undefined behavior. Apple Silicon results in zero, Intel results in wrap around values. This test cast an image of Vector<double,3> pixels to and image of Vector<unsigned char, 3> pixels inconsistently across platforms. Then the test was performed to compute differences of the output images. The test was comparison was re-written to take the magnitude of the Vector<double,3> pixels and multiplies them into a range of approximately 0-255 for the (now) scalar output image. This output image is easier to visualize and compute results. ctest -V -R itkBSplineScatteredDataPointSetToImageFilterTest05 ctest -V -R itkSymmetricEigenAnalysisImageFilterTestDoNotOrder ctest -V -R itkSymmetricEigenAnalysisImageFilterTestOrderByMagnitude ctest -V -R itkSymmetricEigenAnalysisImageFilterTestOrderByValue
- Loading branch information
1 parent
028583b
commit 1d6b3e9
Showing
7 changed files
with
128 additions
and
88 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
...tering/ImageGrid/test/Baseline/itkBSplineScatteredDataPointSetToImageFilterTest05.mha.md5
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...ing/ImageGrid/test/Baseline/itkBSplineScatteredDataPointSetToImageFilterTest05.mha.sha512
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...rid/test/Baseline/itkBSplineScatteredDataPointSetToImageFilterTest05_magnitude.png.sha512
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 @@ | ||
60ff7a61fc2ced761db98f50462f12b64a38024a7fb48e4b3b0fd580ae57555e7ddd08582800bd82cda800546f043cacb616daa28b280775b0d5558b2401e914 |
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
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