Skip to content

Commit

Permalink
clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminirving committed May 9, 2017
1 parent 04a67fc commit 347b845
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion run_example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@



from __future__ import division, absolute_import, unicode_literals, print_function

import matplotlib.pyplot as plt
Expand All @@ -8,6 +11,7 @@
from skimage.io import imread
import time

# Load image
img = imread('chelsea.png')

# The ROI is also stored as an image for viewing convenience
Expand All @@ -17,7 +21,7 @@
# The alpha channel is used to store the ROI in this case and is converted into a logical array of 0s and 1s
roi = roi[:, :, 3] > 0

# Alternatively a mask could be created manually with for example:
# Alternatively a mask could be created manually with for example a disk:
# roi = np.zeros((img.shape[0], img.shape[1]))
# a, b = 150, 150
# r = 100
Expand Down

0 comments on commit 347b845

Please sign in to comment.