Skip to content

Commit

Permalink
Update process
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Apr 12, 2019
1 parent 92b92ad commit 7edab2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions process
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ class Context: # pylint: disable=too-many-instance-attributes
if self.mask_ready is None:
return self.image

white = np.zeros(self.image.shape)
white[:] = (255, 255, 255)
return np.where(self.mask == 0, white, self.image)
image = self.image.copy()
image[self.mask_ready == 0] = (255, 255, 255)
return image

def crop(self, x: int, y: int, width: int, height: int) -> None:
if self.image is None:
Expand Down

0 comments on commit 7edab2f

Please sign in to comment.