Published September 24, 2025
| Version 2.2.3
Software
Open
demidenm/PyReliMRI: Make bool when expected for dice, jaccard, tetrachor
- 1. Stanford University
- 2. @SIMEXP
Description
Dice, Jaccard and Tetrachoric correlations expect boolean values, 1/0 (T/F). When non-boolean values are provided this will impact the resulting computing. Added a bool enforcement following thresholding for these three components.
# Imgs must be 1/0 binary images, ensure correct format for each similarity type
if similarity_type.casefold() in ['dice', 'jaccard', 'tetrachoric']:
# Binarize input for these metrics
imgdata = imgdata.astype(bool)
Files
demidenm/PyReliMRI-2.2.3.zip
Files
(28.1 MB)
Name | Size | Download all |
---|---|---|
md5:b1f70d587e33111e80f6ce6c57c15d25
|
28.1 MB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/demidenm/PyReliMRI/tree/2.2.3 (URL)
Software
- Repository URL
- https://github.com/demidenm/PyReliMRI