Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sct_get_centerline robust to intensities ∈ [0, 1] (#1746)
* add a intensity scaling prior to int16 conversion to prevent intensity < 1 * Add refs in the header of the functions * add ref optic deepseg_sc * convert to uint16 * for intensities between 0 and 1 the data was not rescaled, we removed the "if" condition * use changeType * the if condition is crucial for binary images as input. * use skimage.img_as_uint + be robust to negative values with an intensity translation * img_as_int instead of img_as_uint * replace the skimage functions --> rescale in uint16 range then convert to uint16 Former-commit-id: dea98c9
- Loading branch information
1 parent
dd00660
commit a66cc16
Showing
5 changed files
with
22 additions
and
4 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
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