Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(weighting): add simple normalization to chunk search
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmyshin committed Jul 22, 2019
1 parent 87cb91c commit d3fbbca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnes/preprocessor/image/segmentation.py
Expand Up @@ -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.