Skip to content

Commit

Permalink
Fixing mask optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacu committed May 18, 2023
1 parent 99e9bfd commit 059822d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vot/region/shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ def _optimize(self):
self._mask = np.zeros((0, 0), dtype=np.uint8)
self._offset = (0, 0)
else:
self._mask = np.copy(self.mask[bounds[1]:bounds[3], bounds[0]:bounds[2]])

self._mask = np.copy(self.mask[bounds[1]:bounds[3]+1, bounds[0]:bounds[2]+1])
self._offset = (bounds[0] + self.offset[0], bounds[1] + self.offset[1])

@property
Expand Down

0 comments on commit 059822d

Please sign in to comment.