Skip to content
Permalink
Browse files

fix(weighting): add simple normalization to chunk search

  • Loading branch information...
jemmyshin committed Jul 22, 2019
1 parent 87cb91c commit d3fbbcacf64ebe1a1e40fa3afaefac09b6eeb943
Showing with 2 additions and 1 deletion.
  1. +2 −1 gnes/preprocessor/image/segmentation.py
@@ -83,5 +83,6 @@ def _crop_image_reshape(self, original_image, coordinates):
return np.array(original_image.crop(coordinates).resize((self.target_img_size,
self.target_img_size)))

def _cal_area(self, coordinate):
@classmethod
def _cal_area(cls, coordinate):
return (coordinate[2] - coordinate[0]) * (coordinate[3] - coordinate[1])

0 comments on commit d3fbbca

Please sign in to comment.
You can’t perform that action at this time.