crabbly commited on
Commit
6f2d0e2
·
verified ·
1 Parent(s): ed61afc

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -436,8 +436,8 @@ class WatermelonProcessor:
436
  _, _, f_width_px = get_intersections(phi, flesh_mask)
437
 
438
  rind_thick_px = None
439
- if width_px > 0 and flesh_width_px > 0:
440
- rind_thick_px = float(max(0.0, (width_px - flesh_width_px) / 2.0))
441
 
442
  return height_px, width_px, rind_thick_px, (pt_top, pt_bot), (pt_left, pt_right), f_height_px, f_width_px
443
 
 
436
  _, _, f_width_px = get_intersections(phi, flesh_mask)
437
 
438
  rind_thick_px = None
439
+ if width_px > 0 and f_width_px > 0:
440
+ rind_thick_px = float(max(0.0, (width_px - f_width_px) / 2.0))
441
 
442
  return height_px, width_px, rind_thick_px, (pt_top, pt_bot), (pt_left, pt_right), f_height_px, f_width_px
443