-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Generalize background image calculations to support 16/32-bit ra…
…diographs (#245) Refactor the working 8-bit background image calculation into a generic function to work on 8, 16, and 32-bit radiograph images. Previously, any radiograph that was not 8-bit would use the same broken 16-bit method. This 16-bit method failed to correctly loop over the image because the loop failed to take the size of the datatype into account. This bug was originally introduced in commit 9bbce52 ("background mask 1", 2018-04-03). Co-authored-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
- Loading branch information
1 parent
20d3e7f
commit 48fcab9
Showing
3 changed files
with
66 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
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