Closed matteofrigo closed 4 years ago
Hi @matteofrigo, "b0_mask, mask = median_otsu(data, 2, 1)" still makes the problem of iteration. I am guessing that the median_otsu line is based on dipy example. You may want to update three_tissue_response.py median_otsu line to: b0_mask, mask = median_otsu(data, median_radius=2, numpass=1)
Hi @heejong-kim, following your comment I just updated the usage of the median_otsu function as suggested. Things should work now as expected!
The
median_otsu
method fromdipy
takes as input the variablevol_idx
which must be an iterable. In thethree_tissue_response_dhollander16
function this parameter is passed as a scalar.I'll fix it and push a PR, but we should be aware of the fact that this could be happening somewhere else. It may be due to the recent dipy update (v1.0) but again, I'm not sure and this must be checked.