Skip to content

Commit

Permalink
cropobject.scale() method: debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
hajicj committed Oct 9, 2018
1 parent 9730639 commit 6524a43
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions muscima/cropobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,15 +1098,10 @@ def scale(self, zoom=1.0):
new_top = int(self.top * zoom)
new_left = int(self.left * zoom)

print('Cropobject {}:\n\tbefore rescale: {}'.format(self.uid, self.bounding_box))

self.x = new_top
self.y = new_left
self.height = new_height
self.width = new_width

print('\tafter rescale: {}'.format(self.bounding_box))
print('\tnew mask shape: {}'.format(new_mask_shape))
self.mask = new_mask


Expand Down

0 comments on commit 6524a43

Please sign in to comment.