You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
mask[coord[0] - radius[0]:coord[0] + radius[0] + 1,
coord[1] - radius[1]:coord[1] + radius[1] + 1,
coord[2] - radius[2]:coord[2] + radius[2] + 1] = 1.0
这行是根据结节的半径,在mask的正中央,构造了一个立方体结节部分为1
w, h, d = int(coord[0] - shape[0] // 2), int(coord[1] - shape[1] // 2), int(coord[2] - shape[2] // 2)
w, h, d = max(w, 0), max(h, 0), max(d, 0)
w, h, d = min(w, W - shape[0] - 1), min(h, H - shape[1] - 1), min(d, D - shape[2] - 1)
block = hf['img'][w:w + shape[0], h:h + shape[1], d:d + shape[2]]
这几行代码生成的block,如果w, h, d = max(w, 0), max(h, 0), max(d, 0)中取了0值的话,那么生成的block中的结节不在正中央,会不会对应的mask不匹配?
The text was updated successfully, but these errors were encountered: