Skip to content

Commit

Permalink
vollseg utils
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorlab committed Jul 26, 2022
1 parent 15c0ff8 commit 2883bf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vollseg/nmslabel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from skimage import measure
import numpy as np
import utils
import vollseg.utils
class NMSLabel(object):

def __init__(self, image, nms_thresh):
Expand All @@ -26,7 +26,7 @@ def supresslabels(self):
for (k,v) in self.supresslabel.items():
pixel_condition = (self.image == k)
pixel_replace_condition = v
self.image = utils.image_conditionals(self.image,pixel_condition,pixel_replace_condition )
self.image = vollseg.utils.image_conditionals(self.image,pixel_condition,pixel_replace_condition )

return self.image
def iou(self, boxA, boxB, labelA, labelB):
Expand Down

0 comments on commit 2883bf8

Please sign in to comment.