mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-27 11:27:08 +08:00
Use a simpler operator in the novice tutorial
Using a more explicit series of operations is simpler than using the compound "=/" operator, which may be unfamilar to newer users of Python.
This commit is contained in:
@@ -65,7 +65,7 @@ and know their location in the picture.
|
||||
|
||||
>>> for pixel in picture:
|
||||
... if (pixel.red > 128) and (pixel.x < picture.width):
|
||||
... pixel.red /= 2
|
||||
... pixel.red = pixel.red / 2
|
||||
|
||||
Pictures know if they've been modified from the original file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user