Skip to content

Commit

Permalink
#24 Incorrect function calls in morph_3d
Browse files Browse the repository at this point in the history
  • Loading branch information
carljohnsen committed May 29, 2024
1 parent 8963fb7 commit aca20c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/processing_steps/0750_bone_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ def morph_3d(image, r, fa, fb):
rmins = r // rmin
rrest = r % rmin
for _ in range(rmins):
dilate_3d(I1, rmin, I2)
fa(I1, rmin, I2)
I1, I2 = I2, I1
if rrest > 0:
dilate_3d(I1, rrest, I2)
fa(I1, rrest, I2)
I1, I2 = I2, I1

for i in range(rmins):
erode_3d(I1, rmin, I2)
fb(I1, rmin, I2)
I1, I2 = I2, I1
if rrest > 0:
erode_3d(I1, rrest, I2)
fb(I1, rrest, I2)
I1, I2 = I2, I1

return I1
Expand Down

0 comments on commit aca20c8

Please sign in to comment.