mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-06 05:16:40 +08:00
Merge pull request #1880 from OrkoHunter/fix_doc
Fix circular mask example in the user_guide
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user