Skip to content

Commit

Permalink
Fix circular mask example in the user_guide
Browse files Browse the repository at this point in the history
  • Loading branch information
OrkoHunter committed Jan 16, 2016
1 parent 2487681 commit b4bf4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/source/user_guide/numpy_images.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ disk: ::
>>> nrows, ncols = camera.shape
>>> row, col = np.ogrid[:nrows, :ncols]
>>> cnt_row, cnt_col = nrows / 2, ncols / 2
>>> outer_disk_mask = ((row - cnt_row)**2 + (col - cnt_col)**2 <
>>> outer_disk_mask = ((row - cnt_row)**2 + (col - cnt_col)**2 >
... (nrows / 2)**2)
>>> camera[outer_disk_mask] = 0

Expand Down

0 comments on commit b4bf4ed

Please sign in to comment.