Skip to content

Commit

Permalink
fix(vomue to mesh) threshold required int16 value
Browse files Browse the repository at this point in the history
  • Loading branch information
mpascucci committed Jul 10, 2023
1 parent 7abf84a commit 261afc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dico_toolbox/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def volume_to_mesh(vol, gblur_sigma=1, threshold="80%",

vol_16 = _aims.Volume_S16((MAX_VOXEL_VALUE*gblur).astype(np.int16))
thresholder = _aims.AimsThreshold(
_aims.AIMS_GREATER_OR_EQUAL_TO, threshold, dtype=vol_16)
_aims.AIMS_GREATER_OR_EQUAL_TO, np.int16(threshold), dtype=vol_16)
thresh_vol = thresholder.bin(vol_16)

# NOTE: I could not make the mesher work when tresholding with python
Expand Down

0 comments on commit 261afc0

Please sign in to comment.