.. _example_plot_camera_numpy.py:


Using simple NumPy operations for manipulating images
=====================================================

This script illustrates how to use basic NumPy operations, such as slicing,
masking and fancy indexing, in order to modify the pixel values of an image.

.. image:: images/plot_camera_numpy_1.png
    :align: center


.. literalinclude:: plot_camera_numpy.py
    :lines: 8-



**Python source code:** :download:`download <plot_camera_numpy.py>`
(generated using ``skimage`` |version|)



**IPython Notebook:** :download:`download <./notebook/plot_camera_numpy.ipynb>`
(generated using ``skimage`` |version|)

